You need to sign in to do that
Don't have an account?
Javeed Shaik
Not able to Implement Global Action with Visualforce Pages
Hi,
I was able to create the Visualforce page. I successfully enable the Visualforce page for Salesforce mobile apps and Lightning pages But unable to Create a Global Action using Custom Visualforce with the Visualforce page created above.
I even tried using this piece of code from salesforce documentation to check whether my vf page has any issues but I am getting the same error.
Error:
Please let me know the issue.
Thanks in Advance!!
I was able to create the Visualforce page. I successfully enable the Visualforce page for Salesforce mobile apps and Lightning pages But unable to Create a Global Action using Custom Visualforce with the Visualforce page created above.
I even tried using this piece of code from salesforce documentation to check whether my vf page has any issues but I am getting the same error.
<apex:page docType="html-5.0" title="Create Account"> <apex:remoteObjects > <apex:remoteObjectModel name="Account" fields="Id,Name"/> </apex:remoteObjects> <div class="mypage"> Account Name: <input type="text" id="accountName"/> <button onclick="createAccount()">Create Account</button> </div> <script> function createAccount() { var accountName = document.getElementById("accountName").value; var account = new SObjectModel.Account(); account.create({Name: accountName}, function(error, records) { if (error) { alert(error.message); } else { sforce.one.navigateToSObject(records[0]); } }); } </script> </apex:page>
Error:
Please let me know the issue.
Thanks in Advance!!