Skip to main content
Question

API/Projection call issue with leads - Lead already modified again


Forum|alt.badge.img+17

Hello,

We are currently adding business leads into our IFS Cloud environment with an API call via POST method calls to /main/ifsapplications/projection/v1/BusinessLeadHandling.svc/BusinessLeads. Our request body is a standard payload but when we have an existing account with a non existing contact, we get the following error ‘"IssuePayload: Error(s) issuing request: 1: Resource already modified.. 2: ORA-20114: BusinessLead.FND_MODIFIED: The Lead record has already been changed. Please refresh the record and reenter your changes."’ I believe this is due to IFS automatically creating a person and adding the person as a customer contact to the existing account before the transaction completes.

Is there a way around this? Any and all input would be greatly appreciated.

Best,
Bryan

3 replies

Forum|alt.badge.img+4

Hi ​@bdoucette,

First you need to get (using a GET) the existing record,  and add the value ‘@odata.etag’ as   ‘If-Match’ property to the request header.

 



After getting the @odata.etag from the GET, you must remove the backslashs that served to represent double quotes in the JSON object.

if your @odata.etag is the one in the example above, for instance. Before adding as the if-match to the header the highlighted backslashes needs to be removed.

W/\"Vy8iQUFBU2dDQUFpQUFCQU12QUFCOjIwMjUwMTI4MjExMzI3Ig==\” 

\ backslashes needs to be removed
 

Then add the value as if-match to the request header.
in this case: if-match  “W/"Vy8iQUFBU2dDQUFpQUFCQU12QUFCOjIwMjUwMTI4MjExMzI3Ig==” 

Thank you & Kind regards,
\ Krishantha


Forum|alt.badge.img+17
  • Author
  • Superhero (Customer)
  • 250 replies
  • February 4, 2025

Hi ​@KrishanthaRutterKey 

Thank you for getting back to me so soon, I appreciate it.

How could I get the eTag from a record if the entire REST call is only one call. The transaction to create the person record and the account contact record occurs after IFS receives the projection to create the lead, but before it actually completes it. When you submit the projection call, IFS grabs the contact information, creates the person/contact, then updates the lead with the newly created account contact. We don’t control any of that.

Again, thank you,
Bryan


Forum|alt.badge.img+4
  • Do Gooder (Customer)
  • 7 replies
  • February 4, 2025

Have you added &odata-debug=json to your request to see if you can get some clues to confirm your suspicion? I’ve found that that often includes lots of detail about the full internal process. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings