These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

Posting ChangeLog entry via API?

Hello, I'm trying to post to the IMIS changelog via REST API and keep getting and exception(OperationNotSupportedFault):

POSTURL: https://IMISURL/Asi.Scheduler_iMIS_TEST/api/ChangeLog

OperationNotSupportedFault: : at Asi.Soa.Core.Domain.ChangeLog.UpdateFromDataContract(Object dataContract) in C:\Builds\208\ScrumV3\sp137_Main10\Sources\MainFoundation\imis.net\Packages\Soa\Asi.Soa\Asi.Soa.Core\Core\Domain\ChangeLog\ChangeLog.cs:line 121
at Asi.Soa.Core.Domain.DataContractTranslator.UpdateEntityFromDataContract(Object contract, Object updateEntity) in C:\Builds\208\ScrumV3\sp137_Main10\Sources\MainFoundation\imis.net\Packages\Soa\Asi.Soa\Asi.Soa.Core\Core\Domain\Repository\DataContractTranslator.cs:line 146

Is there something wrong with my data format?

{
"$type": "Asi.Soa.Core.DataContracts.ChangeLogData, Asi.Contracts",
"ActionType": 1,
"ChangeDate": "2018-12-18T13:27:11",
"ChangedByUserId": "DEVELOPMENT",
"Changes": {
"$type": "Asi.Soa.Core.DataContracts.ChangePropertyDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Core.DataContracts.ChangePropertyData, Asi.Contracts",
"NewValue": "2/16/1988",
"OriginalValue": "2/16/1990",
"PropertyName": "Name.BIRTH_DATE"
}
]
},
"Identity": {
"$type": "Asi.Soa.Core.DataContracts.IdentityData, Asi.Contracts",
"EntityTypeName": "Party",
"IdentityElements": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"200343"
]
}
}
}