You are here: Reference > Activity methods > Call another activity > Retrieving status of an external data flow run

Retrieving status of an external data flow run

Use the Call instruction with the pxLoadStatus activity to retrieve the status of an external data flow run and store it in a class instance.

  1. Create an instance of the Activity rule by selecting Activity from the Technical category.

  2. In the activity steps, use the Call pxLoadStatus method:

    1. Add the first step:

      • Method: Page-New

      • Step page: work

    2. Add the second step:

      • Method: Property-Set

      • Step page: work

    3. In the second step, click the arrow to the left of the Method field to specify properties of the work class:

      • .pyID - Identifier of a work object that represents the external data flow run.

    4. Add the third step:

      • Method: Call pxLoadStatus

      • Step page: work

    5. Add the fourth step:

      • Method: Property-Set

      • Step page: work

    6. In the fourth step, click the arrow to the left of the Method field to specify the property in which you want to store the status of an external data flow run.

      For example, PropertiesName: Local.status, PropertiesValue: .pyStatusWork.

  3. Click Save.