ALERT! The community will be read-only on April 19, 8am Pacific as the migration begins. Read more for important details.
ALERT! The community will be read-only on April 19, 8am Pacific as the migration begins.Read more for important details.
Cadet 1st Class Cadet 1st Class
Cadet 1st Class
58 views

Rule to set User Option field

Is it possible to set User Option fields from a RuleSet? 

Scenario: Using the Create Record rule, I'm creating a Request and setting an Offering and multiple required fields.  However I cannot figure out a way to pass filed values from the source record to the User Options of the target Request.

Is this possible?

0 Likes
2 Replies
Vice Admiral
Vice Admiral

Hi,

Currently, it's not possible to set User Options of target request via Create Record business rule. As a workaround;

- You can use comments. After you create record, add comment to new record like "OptionName:Option Value" then you can retrieve the value for user option. 

- Similar to comments, you can fill a field with user option values then parse it. 

Regards.

0 Likes
Vice Admiral
Vice Admiral

Hello again,

Actually you can via Create record business rule. 

- First, create a record of target offering manually and retrieve the value of User Options field. It should be something like that: 

{"complexTypeProperties":[{"properties":{"DynamicComplexTypeRefName_c":"UserOption323c6e7d773c10015980fe664ffd316648b2_c","Field1_c":"88","Field2_c":"88","changedUserOptionsForSimulation":"Field2_c\u0026"}}]}

- Then, set user options field in create record rule with expression above. you'll need to insert desired values of user options. 

Finally, you'll see user options of new record is filled. 

Regards.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.