Create the Integration Procedure with the Remote Action (Managed Package)

For the managed package runtime, an Integration Procedure retrieves and reserializes the value of a name variable from the TestReserializeApex Apex class.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

The Integration Procedure has these components:

  • A Remote Action, named ReserializeApex

  • A Set Values component, named ReserializeApexFunction

  • A Set Values component, named MyName

  • A Response Action, named ResponseAction1

The Structure panel looks like this:

The contents of the Structure panel are listed in the preceding text.

To build this Integration Procedure:

  1. From the Vlocity Integration Procedures tab, click New.
  2. Provide an Integration Procedure Name, a Type, and a SubType, and click Save.
  3. Drag a Remote Action component into the Structure panel and give it the following settings:

    Property

    Value

    Element Name

    ReserializeApex

    Remote Class

    TestReserializeApex

    Remote Method

    random

    Remote Options, Key

    reserialize

    Remote Options, Value

    false

    A Remote Method value is required, but it can be anything, because this Integration Procedure doesn't invoke a method.

    A step in the test of this Integration Procedure will ask you to change the Remote Options Value.

  4. Drag a Set Values component into the Structure panel and give it the following settings:

    Property

    Value

    Element Name

    ReserializeApexFunction

    Element Value Map, Element Name

    result

    Element Value Map, Value

    =RESERIALIZE(%ReserializeApex%)

    Response JSON Path

    result

    Response JSON Node

    ReserializeApex

  5. Drag another Set Values component into the Structure panel and give it the following settings:

    Property

    Value

    Element Name

    MyName

    Element Value Map, Element Name

    Full Name

    Element Value Map, Value

    %ReserializeApex:result:name%

  6. Drag a Response Action component into the Structure panel and check the Return Full Data JSON checkbox.