on 2025 Aug 22 3:27 PM
I"m exploring the use of HTML links in SAP CDC screensets that leverage the data-gigya-api-link attribute. For example, I found this snippet:
<a data-disable-on-render="true" data-gigya-api-link="accounts.otp.sendCode" href="javascript:void(0)" tabindex="0">Resend code</a>
This correctly triggers the accounts.otp.sendCode API. Now, I’d like to use the same mechanism to call other APIs, such as socialize.addConnection, which requires parameters like provider.
My questions are:
Has anyone implemented this or found official documentation that covers this use case?
Thanks in advance!
Damiano
Request clarification before answering.
Hi @damianomilani ,
API methods such as socialize.addConnection must be invoked through the SAP CDC JavaScript SDK, with all required parameters passed in JavaScript object. Passing parameters via HTML attributes is not supported and the SDK approach is the only officially supported method.
Also the data-gigya-api-link attribute is great for simple and declarative triggers like sending an OTP like your example or log out functionality. But for anything that requires dynamic input like choosing a social provider, passing user data then the SDK is the reliable and documented path.
Hope this is helpful
Regards,
Anand Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.