[Evergreen-general] How to apply ischanged, isnew to osrf-http-translator reuqests
Kieran Pearce
kieran at communico.us
Wed Feb 10 04:06:25 EST 2021
Hi,
Trying to update patron record details with the open-ils.actor.patron.update function. When making a request to change first_given_name or email it returns the original unchanged record.
We understand that to change details that the ischanged function should be triggered. Could someone please explain in simple terms how our request below should be modified so that it triggers ischanged?
curl --location --request POST 'https://evergreen.lib.in.us/osrf-http-translator' \
--header 'X-OpenSRF-service: open-ils.actor' \
--header 'Content-Type: text/plain' \
--data-raw 'osrf-msg=[
{"__c":"osrfMessage","__p":
{"threadTrace":03,"type":"REQUEST","payload":
{"__c":"osrfMethod","__p":
{"method":"open-ils.actor.patron.update","params":["de11763358b0ef1e006a91e2eeb5ed18", {"__c":"au",,"__p":[[{"__p":["Mailing","Plainfield","US",null,1686689,"46168","IN","1121 STAFFORD RD.",null,4538858,"t","f",null,"f"],"__c":"aua"}],[{"__p":[],"__c":"ac"}],null,null,null,[{"__p":[],"__c":"aus"},{"__p":[],"__c":"aus"}],[],[],null,[],null,null,"t","Dummy account1. MS 1/7/2019","f",{"__p":[],"__c":"aua"},{"__p":[],"__c":"ac"},0,0,"2019-01-07T10:10:10-0500","0.00",null,"1900-01-01","test1 at test.us<mailto:test1 at test.us>",null,"2023-01-15T10:49:20-0500","TEST","STAFF1",37,4538858,1,null,null,null,"1611258822.5923718994.7288487182",{"__p":[],"__c":"aua"},"f",1,null,null,null,null,44,null,1,null,"f",3694213,"21208049372372",null,"f","2021-01-21T14:53:42-0500",null,null,null,null,null,null,null,null,"f",null,null,null,null,null,null,null,null,null,[{"__c":"auact","__p":[]}]]}]}
},"locale":"en-US"
}
}
]'
Thank you for your help,
Kind Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.evergreen-ils.org/pipermail/evergreen-general/attachments/20210210/351d6cac/attachment-0001.html>
More information about the Evergreen-general
mailing list