Post

2 followers Follow
0
Avatar

Rest API: How to update Baseline DueDate and Baseline Start Date From API?

We have the requirement to update the Base line Start Date and Baseline Due Date from API. As these dates are Read Only we are unable to do this? Can you please suggest how can we update these dates from API?

Sreekanth A Answered

Please sign in to leave a comment.

3 comments

1
Avatar

Hi Sreekanth,
You cannot change the baseline directly, that includes the API.
You can save the baseline from the Clarizen UI or through customization methods (e.g. workflow rule), which in turn can be triggered by the API.

You didn't elaborate why you need to change the baseline values.
Perhaps you could use custom fields for those changeable start/due dates. Custom fields can be 'API updatable only'.
Hope this helps,
Ophir

Ophir Kenig 1 vote
Comment actions Permalink
0
Avatar

Hi Ophir,

Thank you! Can you please guide me that how to trigger workflow rule from API? Can you please provide the documentation links regarding this?
Regards,
Sreekanth.

Sreekanth A 0 votes
Comment actions Permalink
0
Avatar

Hi Sreekanth,
1. Add a custom field of type 'Toggle' to that entity. Check 'This field can be updated only through the API and Business Rules'.
2. Build a workflow rule of type 'When a record is created, or when a record is edited and did not previously meet the rule criteria' and on the evaluation criteria specify <new field> = true
3. On the rule action, specify 1. Save as baseline, 2. Update field to set that field to false.
4. Through the API, update that new custom field to true.

In general, workflow rules respond to updates, which in turn could be requested through the API (but not necessarily).
Hope this helps,
Ophir

Ophir Kenig 0 votes
Comment actions Permalink