本文介绍了更新和使用REST API在Salesforce中删除记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

ax1.salesforce.com/services/data/v29.0/sobjects/Account/updated/?start=2015-06-30T06%3A49%3A00%2B00%3A00&end=2015-06-30T16%3A30%3A26%2B00%3A00

这似乎是一个典型的更新查询和删除查询也将是类似
上述

此查询的响应将是下面的形式:

IDS:0019000001QeOINAA3],latestDateCovered:2015-06-30T09:00:00.000 + 0000}

这里的主要问题是latestDateCovered参数:

它并不确切的时间返回,由于在下面的链接提到的原因:

所以不是这个,我可以使用LastModifiedDate参数更新是这样的:
<一href=\"https://ap1.salesforce.com/services/data/v30.0/query?q=select%20LastModifiedDate%2CName%20from%20Account%20Where%20LastModifiedDate\" rel=\"nofollow\">https://ap1.salesforce.com/services/data/v30.0/query?q=select%20LastModifiedDate%2CName%20from%20Account%20Where%20LastModifiedDate>2015-07-01T10%3A04%3A00.000%2B0000

我保存lastModifiedDate参数(最高所有记录),做同样的

这两个查询会产生相同的结果正确

逸岸次述人给更好的结果。

我可以用相同的权利继续?

会不会有什么问题?


解决方案

您可能希望将帐户编号添加到您SOQL查询来获取类似数据的REST相当于getUpdated()复制API调用的。

有无的读是什么LastModifiedDate和SystemModStamp区别?。您可能会发现SystemModStamp是比较合适的。

从文章,您链接到。

So, Salesforce is returning a conservative latestDateCovered to make allowances for transactions that may not have completed yet.

How suitable either approach is will depend on what exactly you are planning to do with the results. You might also want to consider the Streaming API if you only want to monitor records that are changing over a shorter period of time. E.g. a user session.

By the way, the Salesforce StackExchange site is a great place to ask Salesforce specific questions.

这篇关于更新和使用REST API在Salesforce中删除记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 11:56