I'm trying to use SOA to find a Party by Major Key. If a record exists with a specified Major Key then update the Party information, otherwise an insert needs to happen.
An example or sample code of how to find a party by Major Key would be helpful.
I'm trying to use SOA to find a Party by Major Key. If a record exists with a specified Major Key then update the Party information, otherwise an insert needs to happen.
An example or sample code of how to find a party by Major Key would be helpful.
Sample code, and caveats
This should get you going (minus checks for null gQuery and pQuery results):
There is one bug that ASI is working on, in that if you obtain a PartyData record that has a MajorKey, update some other property in that item, and Update it, you will encounter an error on any subsequent retrieval of that item.