AgeCalculation
David Rivard edited this page Dec 30, 2020
·
1 revision
This API is used to calculate the age of a subject at a given date.
Input Parameters
Parameter | Type | Description | Required |
---|---|---|---|
Birthday | DateTime | Birthday of the subject | X |
AgeAtDate | DateTime | Date at wich the age will be calculated | X |
Output Properties
Property | Type | Description |
---|---|---|
Age | Interger | Age of the subject |
Request
https://{{baseurl}}/api/data/v9.1/driv_AgeCalculation
{
"Birthday" : "1975-09-12",
"AgeAtDate" : "2020-12-31"
}
Response
{
"@odata.context": "https://{{baseurl}}/api/data/v9.1/$metadata#Microsoft.Dynamics.CRM.driv_AgeCalculationResponse",
"Age": 45
}