on 09-01-2022 6:55 PM
I can do a deep create using a POST.
{
"d":{
"purchasingdoc":"4500000006",
"purchasingdoccategory":"F",
"to_mapping":[
{
"att_key":"000d3ade-0d5b-1edc-91dd-2a7d7610bc29",
"att_name":"52.222-21",
"cat_name":"",
"fieldtype":"003",
"fieldTypeText":"CLAUSE LIBRARY",
"description":"Prohibition of Segregated Facilities",
"externalversion":"001",
"internal_external":"0"
},
{
"att_key":"000d3ade-0d5b-1edc-89f6-3f820d83d786",
"att_name":"1.1.1.1",
"cat_name":"Quality Clauses",
"fieldtype":"003",
"fieldTypeText":"CLAUSE LIBRARY",
"description":"CLAUSE #1",
"externalversion":"001",
"internal_external":"0"
}
]
}
}
But I cannot seem to figure out how to send an array of mappings in for a purchasing document that already exists.
I can send them individually via a POST through the association. i.e. .../header(db_key=guid'000d3ade-0d5b-1eec-aabf-74507beeecc2')/to_mapping
with a payload of
{
"att_key":"000d3ade-0d5b-1edc-91dd-2a7d7610bc29",
"att_name":"52.222-21",
"cat_name":"",
"fieldtype":"003",
"fieldTypeText":"CLAUSE LIBRARY",
"description":"Prohibition of Segregated Facilities",
"externalversion":"001",
"internal_external":"0"
}
but I cannot figure out how to send multiple in.
Am I going to have to send them in separately via a changeSet?
This can be accomplished quite easily with EML but doesn't seem possible via a OData.
Hello Paul,
I guess this is (currently) not possible like in the deep-create case.
What you can do instead is to have multiple create-by-association requests bundled into one changeset, which is then also mass-processed on the RAP backend.
Something like:
--change_set
POST header(<your_id>)/to_mapping
{
"property":"value" , ...
}
--change_set
POST header(<your_id>)/to_mapping
{
"property":"value" , ...
}
--change_set
POST header(<your_id>)/to_mapping
{
"property":"value" , ...
}
--change_set--
Best Regards, Volker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.