In a workflow condition, the Probability field when used is returning a string value. You need to change it to a number value so that the condition will be properly evaluated. To change the value to a number, the use of formula is required. This is also applicable to other fields that should return a number value.
To Create the Workflow:
1. Navigate to Customization > Workflow> Workflows > New.
2. On the Name field, set an appropriate name.
3. On the Record Type field, select Opportunity.
4. Click Save.
5. Create a New State.
6. On the Name field, enter a value.
7. Click Save.
8. On a new state, click New Action button to add an action.
9. On the Workflow State, select Set Field Value.
10. Set Trigger On with After Field Edit, where Client Fields is set to Probability
11. In the Workflow State condition, choose In the Workflow state condition, choose Custom Formula and input the following script:
parseInt(nlapiGetFieldValue('probability'))>10
or use formula:
{probability}>0.10
12. On Parameters field, Select the field you want to be set.
13. On the Value Field, select Value you want to set on the Field Parameter.
14. Click Save.
No comments:
Post a Comment