通过外部ID访问NetSuite销售订单

huangapple go评论54阅读模式
英文:

Access NetSuite Sales Order by External ID

问题

下午好,大家好,我只是想知道是否有一种简单的方法可以使用外部ID通过URL访问NetSuite中的记录。

NetSuite销售订单的原始URL是:

https://XXX.app.netsuite.com/app/accounting/transactions/salesord.nl?id=YYY&whence=

其中:
XXX是客户/组织ID
YYY是NetSuite内部ID

然而,我真正想要的是能够将该URL更改为如下所示:

https://XXX.app.netsuite.com/app/accounting/transactions/salesord.nl?external_id=ZZZ&whence=

我知道可以通过REST API来实现这一点,但我不想在它们已经通过此ID链接在我们的系统中时将所有这些数据同步回来。我只想创建一个动态URL,让人们直接进入NetSuite。

这应该可以作为本机功能实现,对吗?

希望能实现这个功能!

英文:

Good afternoon all, I am just wondering if there is an easy way to access a record in NetSuite by URL using the External ID.

The native URL for a NetSuite Sales Order is:

https://XXX.app.netsuite.com/app/accounting/transactions/salesord.nl?id=YYY&whence=

Where:
XXX is the Client/Org ID
YYY is the NetSuite Internal ID

However what I really want is to be able to change that URL to be say:

https://XXX.app.netsuite.com/app/accounting/transactions/salesord.nl?external_id=ZZZ&whence=

I know you can do this via the REST API, but I don't really want to sync all of this data back into our system when they are already linked by this ID. I just want to create a dynamic URL to take people straight into NetSuite.

Surely this should be possible as natively functionality?

Fingers crossed it is!!!

答案1

得分: 1

如果用户已经登录到Netsuite,要将包含外部ID的链接转换为内部链接,您可以使用Suitelet。

Suitelet将提取外部ID参数,使用N/search API查找内部ID,然后使用N/redirect API将用户重定向到实际的销售订单视图。

请注意,如果使用外部ID链接的用户未登录到Netsuite,仍然可以返回销售订单的自定义HTML页面或将销售订单作为PDF返回。

英文:

If the person is already logged in to Netsuite then to convert a link containing an external id to an internal link you would use a suitelet.

The suitelet would extract the external id parameter, use the N/search API to find the internal id and then the N/redirect API to forward your user to the actual sales order view.

Note that if the person with the external id link is not logged in to Netsuite you can still return a custom html page of the sales order or return the printed sales order as a PDF

答案2

得分: 0

很抱歉,没有本地的方法来使用URL中的外部ID。
唯一的方法应该是自定义的,一个很好的例子是来自@bknights的例子。

英文:

Unfortunately, there is no native way of using the external id in a URL.
The only way should be custom, and a good example is the one from @bknights

huangapple
  • 本文由 发表于 2023年6月19日 13:39:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76503872.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定