How can I retrieve a profile option value from an action chain in Oracle Visual Builder Studio?
If the profile option is REST enabled, then you can get the value using the following
code: const poVal = await
cxcore.services.profileOptions.getProfileValue(profileOptionName)
. Follow these
steps to enable a profile option for REST.
You enable the profile option for REST by adding it to the secure category (ORA_FND_AUTH_REST_ACCESS). This category gives the profile option AUTH access so the value can be retrieved using the REST endpoint.
- Open the Setup and Maintenance work area.( )
Click the Tasks drawer icon.
- In the drawer, click the Search link.
- Search for the task Manage Profile Categories and click the link.
- In the Manage Profile Categories page, search for the Category CodeORA_FND_AUTH_REST_ACCESS.
- In the ORA_FND_AUTH_REST_ACCESS: Profile Options, section, click
New (the plus sign).
- Search for and select the name of your profile option.
- Click Save and Close.
- Do a Get to this endpoint:
https://<yourserverhost>/fscmRestApi/resources/11.13.18.05/profileValues/PO_ENABLE_RCO_PWA
.