APIを走らせる方法

Pirakawa
Tera Contributor

こんにちは。

ポータル画面でUIアクションを表示して、ボタンを押下するとAPIが走るようにしたいです。

APIは完成したのですが、UIアクションからAPIを走らせることができません。

UIアクションの「クライアント」にチェックを入れるとポータル画面で表示されなくなってしまいます。

どうすればよいでしょうか…

 

 

1 件の受理された解決策

Ankur Bawiskar
Tera Patron
Tera Patron

@Pirakawa 

Client side UI actions are not supported in portal and won't show in portal form.

You will have to ensure your UI action is server side and write server side code to consume 3rd party API.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

元の投稿で解決策を見る

3件の返信3

Ankur Bawiskar
Tera Patron
Tera Patron

@Pirakawa 

Client side UI actions are not supported in portal and won't show in portal form.

You will have to ensure your UI action is server side and write server side code to consume 3rd party API.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar さん

いつも回答ありがとうございます。

 

やはりクライアント側のUIアクションはポータルでサポートされていないのですね…

ちなみに、APIが走ったのをきっかけに or APIの処理の中で or APIでほかの処理を走らせて、UIアクションのようなクライアントスクリプトを実行することはできますか…?

@Pirakawa 

whatever logic you want to run will be server side related to API

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader