I have a situation were I need to create/clone a feature and related records as well in a calculate rule. The issue is the related records are related by the feature GlobalID. I have no issues if I use fields that are not read-only, but in my situation I do not have that luxury. I have tried:
Sample json trying to use the 'tag' keyword:
{
"edit": [
{
"adds": [
{
"attributes": {
"ASSETGROUP": 1,
"ASSETID": "ABC1234",
"ASSETTYPE": 9,
"LASTUPDATE": "2000-01-01T00:00:00.000Z"
},
"geometry": {
"hasZ": true,
"paths": [
[
[ 1035213.7623968, 2253188.4937827, 0 ],
[ 1035239.3082778, 2253154.9229833, 0 ]
]
],
"spatialReference": {
"wkid": 102671
}
},
"tag": "newLineFeature"
}
],
"className": "PipelineLine"
},
{
"adds": [
{
"attributes": {
"LineGlobalID": "newLineFeature.globalid",
"Notes": "A relate"
},
"tag": "newLineFeatureRel0"
}
],
"className": "LineRelateTable"
}
],
"result": "Completed"
}
Is there any way to do this?
Thanks
The new feature needs a global ID that will be related to the cloned related record, as this is calcuated on the server, you need to use the tags.
Check out this topic and looks for this line in the code sample
"tag": "jo1", //unique identifier for new feature in the Structure Junction Object class
Thanks for the response. I have tried that, the issue with that is it's limited to "utility network associations table" and doesn't work for 'Relate'. If they extended that 'tag' to work with Relates, that would resolve my problem.