Post

2 followers Follow
0
Avatar

Set or Update Time-phase Financial Data via API

Under Set or Update Time-phase Financial Data using Workflow Rules – Clarizen Success it is explained how to create or update NLR Time Phase Data. What would a JSON request look like? We retrieve actuals from SAP and want to refresh (create or update) the actuals through an API interface. Workitem ID, NLR ID, FiscalMonth and of course the actuals (value and currency) should serve as input.

Frank Sieweke Answered

Official comment

Avatar

Hi Frank,

Creating Financial Timephase Date is a two-step process. First, you have to create a NonLaborResourceLinkDirect link between the work item and NLR:

PUT https://api.clarizen.com/v2.0/services/data/objects

{"id": "/NonLaborResourceLinkDirect", "WorkItem": "/WorkItem/xxx", "NonLaborResource": "/NonLaborResource/xxx", other relevant fields...}

In the response, you will receive the ExternalId of the link that was just created.

Then you can create NonLaborResourceTimePhase on the link created in the first step like so:

PUT https://api.clarizen.com/v2.0/services/data/objects

{"id": "/NonLaborResourceTimePhase", "RelatedLink": "/NonLaborResourceLinkDirect/ExternalIdFromStepOne", other relevant fields...}

I hope this helps.

Roland

Roland Pumputis
Comment actions Permalink

Please sign in to leave a comment.

1 comment