Add Entitlement Metadata values in Webservice application

Hi,
I am developing an webservice connector. I need to create a json body on Add entitlement operation. Is there any way OOTB by which I can populate entitlement metadata values from plan in json body directly on Add entitlement operation?

Thanks
Gourab

Hi @gourab,

Please use before operation rule to print your plan and if the details are available that you are looking then you can reference it using json attribute reference.

Otherwise, you may call an API in your before operation rule to get extra details.

Document for your reference.

Thanks

1 Like

hey @gourab !

yes there is , everything that you put into the Provisioning policy , for add entitlement Update Policies, is going to be present to be called using the $plan.METADATA$ format.

Yes use a Rule is also a possibilitty but it may create unnecessary lag.

Best

Hi @ipobeidi ,
I have tried but it is not working as expected. Do you have any sample policy where you are passing the attribute and metadata?

Sure, Like the account creation the UPDATE operation also have a provisioning policies

{
    "name": "Update",
    "description": null,
    "usageType": "UPDATE",
    "fields": [
        {
            "name": "metadataAttribute",
            "transform": {
                "type": "accountAttribute",
                "attributes": {
                    "sourceName": "Source",
                    "attributeName": "xablau"
                }
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        }
    ]
}

you can have logic or even transforms on it. and populate accordingly
this for attributes or anything else. In the plan, is going to show as AttributeRequest but as you controll the provisioning that shouldnt be a problem.

hey @gourab as we talked, you need a Before Provisioning Rule to put the values iin the plan so you can capture it using the OOTB function.

best!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.