Time stamp when Entitlement is added

web service connector

Add Entitlement body has required attribute “date from” that has to be populated when entitlement is added to user account else it fails.

Note: IDN is only able to populate native identity and the value of the requested entitlement for “Add Entitlement” operations.

can before operation rule handle this by generating now date (if any date method is available in java docs) or it has to be handled from beforeProvisioning Rule?

Any suggestions/ideas are appreciated

Thanks!

Try this for adding a timestamp for when an account is created when adding an entitlement. Adjust it as you see fit

{
  "name": "Create Account",
  "description": null,
  "usageType": "CREATE",
  "fields": [
    {
      "name": "messageID",
      "transform": {
        "type": "static",
        "attributes": {
          "value": "$dateID.substring(0,8)$string",
          "dateID": {
            "type": "dateFormat",
            "attributes": {
              "input": {
                "type": "dateMath",
                "attributes": {
                  "expression": "now",
                  "roundUp": true
                }
              },
              "inputFormat": "yyyy-MM-dd'T'HH:mm",
              "outputFormat": "EPOCH_TIME_JAVA"
            }
          },
          "string": {
            "type": "randomNumeric",
            "attributes": {
              "length": 6
            }
          }
        }
      },
      "attributes": {},
      "isRequired": false,
      "type": "",
      "isMultiValued": false
    }
  ]
}

This has already been implemented when account is created. However, adding entitlement has different json body with additional attribute where current date has to be populated

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