Would it be possible to provide here or via the REST API documentation
https://documentation.riada.se/display/ICV50/Objects+-+REST
an example of creating an object which includes a referencedObject attribute?
I'm not overly sure what's required and haven't had luck with my tests.
Hi Chad,
This is an example where I set an object referenced:
{ "objectTypeId": 10834, "attributes": [ { "objectTypeAttributeId": 90041, "objectAttributeValues": [ { "value": "Test object" } ] }, { "objectTypeAttributeId": 94875, "objectAttributeValues": [ { "value": "IN-247" } ] } ] }
What you have to set as the value is the KEY for the object.
Best Regards
Alexander
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the example! I'm doing something similar. However, what if you need to add multiple references in the same attribute?
For example, I have the Insight attribute called "Entity" that can have more than one reference object in there. Effectively, I'm trying to do something like:
{
"objectTypeAttributeId": 68,
"objectAttributeValues": [
{
"value": "SC-363||SC-300||SC-301"
}
]
}
EDIT: I got it working
{
"objectTypeAttributeId": 68,
"objectAttributeValues": [
{
"value": "SC-363"
},
{
"value": "SC-300"
}
]
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.