嗨,我使用下面的代码来使用asp.net c#向Zoho表单添加一个记录。然而,我在回复中收到“该表单已从发布中移除”。
我已经检查了Zoho创建者的表单,它的工作状态&已经发布了。
请帮我解决这个问题。
public partial class WebForm1 : System.Web.UI.Page
{
protected void btnSubmit_OnClick(object sender, EventArgs e)
{
var response = Http.Post("https://creator.zoho.com/saadelboury1/myfirstApp/form-perma/NEWDISTRIBUTOR/record/add/", new NameValueCollection() {
{ "authtoken", "<KEY>" },
{ "scope", "creatorapi" },
{ "First_Name", "John" },
{ "Last_Name", "Doe" },
{ "Email", "someone22@gmail.com" },
});
string result = System.Text.Encoding.UTF8.GetString(response);
Response.Write(result);
}
}
}
public static class Http
{
public static byte[] Post(string uri, NameValueCollection pairs)
{
byte[] response = null;
using (WebClient client = new WebClient())
{
response = client.UploadValues(uri, pairs);
}
return response;
}发布于 2016-10-19 08:52:26
发布于 2022-09-22 10:05:18
在这里,我通过添加记录任务将学校表格中的记录推送到学生表单中。
var = Insert into Student
[
Name = input.Name
Email = input.Email
Phone = input.Phone
Address = input. Address
];保存新记录的ID的变量。指定值的字段的<链接名称。要分配给字段的值。可以直接指定值,也可以指定表达式。
https://stackoverflow.com/questions/40064989
复制相似问题