Hi,
I like to create a deprecated descriptor for a schema field "runId". This field is part of an array in the schema. Below is the body of the POST Create a descriptor request:
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
You could try the following:
{ "@type": "xdm:descriptorDeprecated",
"xdm:sourceSchema": "{{SCHEMA_ID}}",
"xdm:sourceVersion": 1.1,
"xdm:sourceProperty": "/modelScores[*]/runId" }
I read some docs stating this:
--When dealing with arrays in AEP schemas, the path notation often requires the use of an asterisk * to indicate that you are referring to an element within the array.
--For fields inside an array, you typically need to specify the array element using the [*] notation. This is used to denote that the field is within any item of the array.
Hi @Prateek-Garg , Try using something like xdm:sourceProperty": "/{{tenantId}}/modelScores/[0]/runId.
[0] in the path specifies the first element (index 0) within the modelScores array. You can replace [0] with the specific index of the element containing the runId field if your array has multiple elements.
You could try the following:
{ "@type": "xdm:descriptorDeprecated",
"xdm:sourceSchema": "{{SCHEMA_ID}}",
"xdm:sourceVersion": 1.1,
"xdm:sourceProperty": "/modelScores[*]/runId" }
I read some docs stating this:
--When dealing with arrays in AEP schemas, the path notation often requires the use of an asterisk * to indicate that you are referring to an element within the array.
--For fields inside an array, you typically need to specify the array element using the [*] notation. This is used to denote that the field is within any item of the array.
Thanks Dave. It worked. I used [*] in the code and it is accepted. Appreciate your help on this Dave.
Views
Likes
Replies
Views
Likes
Replies