Quintiq file version 2.0
|
#parent: #root
|
Method ApiBuildPostRequestBody (
|
String bodynumber
|
) as String
|
{
|
Description: 'Build the post request body for https post'
|
TextBody:
|
[*
|
// Administrator Aug-18-2023 (created)
|
|
postrequestbody := JSON::Object()
|
.Add( "serviceInterfaceCode", "ESBOTDH000" + bodynumber )
|
.Add( "fromSystemCode", "OTDH000" + bodynumber )
|
.Add( "toInterfaceCode", "QIDH000" + bodynumber )
|
.Add( "ouZone", "OU_TMSH" )
|
.Add( "uuid", "1617355496bb588e353e80147eea5f45" )
|
.Add( "requestTime", DateTime::Now().Format( "Y-M2-D2 H:m:s" ) )
|
.Add( "dataType", "JSON" )
|
.Add( "data", JSON::Object()
|
.Add( "pageIndex", "1" ) ).Build();
|
|
info( DateTime::Now().Format( "Y-M2-D2 H:m:s" ) );
|
postrequestbodystring := postrequestbody.AsString();
|
|
return postrequestbodystring;
|
*]
|
}
|