[英]Unable to create a form with multiple FormFields using REST API for Oracle Eloqua Marketing Cloud Service?
我正在測試用於使用POSTMAN
創建表單的Oracle Eloqua Marketing Cloud Service
方法的REST API
。 REST API
鏈接。
當我給出單個表單字段時,表單正在創建。 這是我的要求:
POST /assets/form
Content-Type: application/json
但是當我嘗試使用多個表單字段創建表單時,如下所示:
Request body: {
"type": "Form",
"createdAt": "1510563258",
"createdBy": "9",
"folderId": "7",
"name": "Form with 3 fields_de-DE1254",
"updatedAt": "1510563258",
"elements": [
{
"style": "{\"fieldSize\":\"large\",\"labelPosition\":\"top\"}",
"type": "FormField",
"name": "Æddrèëss 2",
"dataType": "text",
"displayType": "text",
"htmlName": "address2",
"useGlobalSubscriptionStatus": "False",
"validations": []
},
{
"style": "{\"fieldSize\":\"large\",\"labelPosition\":\"top\"}",
"type": "FormField",
"name": "Æddrèëss 3",
"dataType": "text",
"displayType": "text",
"htmlName": "address3",
"useGlobalSubscriptionStatus": "False",
"validations": []
}
]
}
我得到錯誤:
Status : 500 InternalServerError
<html>
<head>
<title>Internal Server Error</title>
</head>
<body>
<h1>
Internal Server Error
</h1>
<div>
There was an internal server error.
</div>
<div>
The error has been logged with log identifier
<b>115451307</b>.
</div>
<div>
Please provide this log identifier to technical support.
</div>
</body>
</html>
請有人幫我解決這個問題嗎? 另外,這個日志標識符是什么,我在哪里可以找到它?
我剛剛有了這個並從支持那里得到了解決方案。 您需要為字段 id 輸入一個唯一的負整數。 執行此操作后,您可以發送一組表單字段,它們都將在一次調用中得到處理。 如果成功,響應將包含新生成的 ID。
這是修改后的片段:
Request body: {
"type": "Form",
"createdAt": "1510563258",
"createdBy": "9",
"folderId": "7",
"name": "Form with 3 fields_de-DE1254",
"updatedAt": "1510563258",
"elements": [
{
"id": "-1",
"style": "{\"fieldSize\":\"large\",\"labelPosition\":\"top\"}",
"type": "FormField",
"name": "Æddrèëss 2",
"dataType": "text",
"displayType": "text",
"htmlName": "address2",
"useGlobalSubscriptionStatus": "False",
"validations": []
},
{
"id": "-2",
"style": "{\"fieldSize\":\"large\",\"labelPosition\":\"top\"}",
"type": "FormField",
"name": "Æddrèëss 3",
"dataType": "text",
"displayType": "text",
"htmlName": "address3",
"useGlobalSubscriptionStatus": "False",
"validations": []
}
]
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.