You need to sign in to do that
Don't have an account?
Akash Parashar
const filter1= { $schema: "http:/000000",
target: {
table: "VW_SF_VIS_ORG", column: "RETAILER_CD" },
operator: "In",
values: ["88888"]
}
I need to pass dynamically current user account custom field in below javascript, in values: ["8888"] section, is there any way i can do that?
const filter1= { $schema: "http:/000000",
target: {
table: "VW_SF_VIS_ORG", column: "RETAILER_CD" },
operator: "In",
values: ["88888"]
}
<script type="text/javascript">
function showUserDetails(){
alert('Custom Field value on User: {!$user.custom__c}');
}
showUserDetails();
</script>
Your Code:
const filter1= { $schema: "http:/000000",
target: {
table: "VW_SF_VIS_ORG", column: "RETAILER_CD" },
operator: "In",
values: ["{!$user.custom__c}"]
}
All Answers
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
<script type="text/javascript">
function showUserDetails(){
alert('Custom Field value on User: {!$user.custom__c}');
}
showUserDetails();
</script>
Your Code:
const filter1= { $schema: "http:/000000",
target: {
table: "VW_SF_VIS_ORG", column: "RETAILER_CD" },
operator: "In",
values: ["{!$user.custom__c}"]
}