Bound Action¶
The BusinessLeadHandling
projection is used to demonstrate how to call an action that is related to a particular record.
In this case, an action is called to set the status of a given lead to In Progress.
Before you Begin
- Obtain the access token by following the steps given in the Authentication page.
- Make sure the user you used while obtaining the access token, has the permission set granted to access the
BusinessLeadHandling
projection used in the quick start. To do this, first, let's create a permission set.- Navigate to Solution Manager > Users and Permissions > Permission Sets.
- Click on the "+" icon and create a new permission set as shown below.
- Tick the checkbox corresponding to the newly created permission set and click Details.
- Select Projections from the left navigation.
- In the Granted Projections panel, click Add/Revoke and select Add from the dropdown that appears.
- Filter by the projection name,
BusinessLeadHandling
. - Tick the checkbox and click OK.
- Select Users Granted from the left navigation.
- In the Users Granted panel, click Add Users.
- Filter using the same user name you used while you created the client for the authentication process.
- Click OK.
In IFS Cloud¶
-
Navigate to Solution Manager > Integration > API Explorer. Alternatively, search for
API Explorer
in the search bar. -
Filter by API Name,
BusinessLeadHandling
. -
Navigate to the API Documentation as shown below.
-
In the API documentation, select
BusinessLeads
on the left navigation and click onInvoke Action SetInProgress
. -
Copy the URL provided in the right panel.
In Postman¶
-
Open a new
POST
request and paste the URL you copied from the API Doc in the previous step as the Request URL. Modify theLeadId
in the URL so that it corresponds to the lead whose status needs to be set. -
Make sure that the header tab has an Authorization key with the value in the format of
Bearer <access token>
as shown below. This is the access token you obtained while authenticating the request. -
Enter the value of
@odata.etag
as theIf-Match
key in the Headers tab. You can find the etag value by calling the GET Request for an Array. -
Click Send.
The status of the lead is not set to In Progress.