Creating a New Campaign with Things

You can create a campaign to run specific tasks on one or more things and add the things to the campaign as part of creating the campaign.

  1. Click Things, and then on the Things page, click the Table tab.
  2. On the Things page, select the things you want to add, and then select Actions > Add to campaign.
  3. On the Add To Campaign page, select the New campaign tab, and click on Create a new campaign. The Adding campaign page is displayed.
  4. In the Name box, type a descriptive name for the campaign.
  5. (Optional) In the Max in progress box, type a number to specify the maximum number of things on which the campaign task can execute at the same time.
  6. From the Action list, select one or more of the supported actions as follows:
    OptionDescription

    method.exec

    This task executes a method defined in the selected thing definition on all things that included in the campaign. If things do not support the selected method, the campaign fails on those things.

    1. From the Thing Definition drop-down list, select the thing definition of the things to add to the campaign.

      Add method.exec
    2. From the Method drop-down list, select the method to execute.

    3. If the method requires parameters, type or select the values as needed.

    4. In the Thing Key field, enter the key of the Thing that is added to the campaign.

    5. In the Ack Timeout box, type the time in seconds (maximum 300) to wait for the campaign to complete.

    thing.tag.add

    1. In the Add thing.tag.add window, enter the Thing key in the box.

    2. Select or type the name of the tag to add to all things in the campaign.

    Add thing.tag.add

    thing.tag.delete

    1. In the Add thing.tag.delete window, enter the Thing key in the box.

    2. Select or type the name of the tag to delete from all things in the campaign.

  7. Click Add.

A message appears at the top of the page to indicate that one or more things were successfully added to the campaign. The message includes a link to the campaign.

The new campaign appears in the list on the Campaigns page.

You can go to the Things page and add additional things, or you can go to the Campaigns page and schedule the campaign.