• Tarun Das
  • NEWBIE
  • 95 Points
  • Member since 2017

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 11
    Questions
  • 11
    Replies
Do you know how to use the new Apex Toolkit Docusign API to transfer data to a custom field (a Salesforce merge field)?

This is the instruction I've been following: https://developers.docusign.com/docs/salesforce/how-to/send-envelope/

However, there are no examples of custom fields being filled with Salesforce data. I attempted to use a custom field class, however it only has read-only properties.

What is the best way to send salesforce data to a template document?


Nama
 
I am coding using Salesforce Apex and DocuSign API. Here a part of my code :
 
DocuSignAPI.Tab tab100 = new DocuSignAPI.Tab() ;                        
tab100.Type_x = 'Custom' ;     
tab100.RecipientID = 1 ;                           
tab100.DocumentID = 1 ;                           
tab100.PageNumber = 1 ;                           
tab100.XPosition = 40 ;                           
tab100.YPosition = 40 ;
Unfortunately, I try to use other field name like "Font, FontSize" but it is not recognized : I got this message "Variable does not exist : Font".

Thanks
 
I have a VF page and a quiz page ,now i want contents to be visible and actionable to NonSalesforce users  or i want this VF Page to be accessible to any user ,i mean he should not need to enter salesforce creds 

any relevant artifacts for this which shows step by step method?

Regards,
Tarun
I am trying to implement ltng:outApp with Global access in my Lightning application,but getting error as below
User-added image
Its a very basic quiz type app,here is .app file content
<aura:application access="GLOBAL" extends="ltng:outApp">
    
    <aura:dependency resource="c:MorningFatMelter"/>
    //Lightning out js
<script src="https://morningfatmelter-developer-edition.na40.force.com/lightning/lightning.out.js"></script>

//Div to render the component
<div id="lightningLocator"></div>

//Script to place app/component
 <script type="text/javascript">
      $Lightning.use("c:MorningFatMelter",    // name of the Lightning app
        function() {                  // Callback once framework and app loaded
          $Lightning.createComponent(
            "c:MorningFatMelter", // top-level component of your app
            { },                  // attributes to set on the component when created
            "lightningLocator",   // the DOM location to insert the component
              function(cmp) {
                // callback when component is created and active on the page
              }
            );
          },
        'https://morningfatmelter-developer-edition.na40.force.com'  //Community endpoint(https://yourinstance.force.com/community)
      );
    </script>
    
</aura:application>

Here is .cmp contents
<aura:component >  
    
    <aura:attribute name="backgroundImageURL" type="String" default=""/>
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>   
    <div style="{!'position: relative; height: 30vh; background:' + v.backgroundColor + ' url(' + v.backgroundImageURL +') no-repeat;background-position: center;background-size: cover;'}">
        
    </div>
    
  
    
    
    <aura:attribute name="options" 
                    type="List" 
                    default="[ {'label': 'Not Sure', 'value': 'option1'}, 
                             {'label': 'Greater Than 40 lb', 'value': 'option2'}, 
                             {'label': 'Less Than lb', 'value': 'option2'}, 
                             {'label': 'Will Decide Later', 'value': 'option2'}, ]"/> 
    <aura:attribute name="value" 
                    type="String" 
                    default="option1"/> 
    
    <div class="slds-align_absolute-center" >
        <h1>How Much Weight You Want To Loose</h1>
    </div>
    <br/>
    <div class="slds-align_absolute-center" >
        <lightning:radioGroup name="radioGroup" 
                              label="Select Your Option Then Click Next" 
                              options="{! v.options }" 
                              value="{! v.value }" 
                              type="radio"/> 
    </div>
    <br/>
    <div class="slds-align_absolute-center" >
        <lightning:button label="Previous"
                          iconName="utility:left"
                          iconPosition="left"
                          variant="brand"
                          onclick="{!c.prevPage}"/>
        <lightning:button label="Next"
                          iconName="utility:right"
                          iconPosition="right"
                          variant="brand"
                          onclick="{!c.nextPage}"/>
    </div>
        
</aura:component>

Any help is highly appreciated

Regards,
Tarun​​​​​​​

 
Why i need to combine <aura:application extends="force:slds">  and <aura:application access="GLOBAL" extends="ltng:outApp"> in App?

Reason is i want my app to be available publicly and also i want to get all features of lightning design system,how do i do that?

My app runs fine when i write below
 
<aura:application extends="force:slds">
    
    <c:MorningFatMelter/>
    
</aura:application>



Now i want  my app to use below line of code ,why? because i need to run my app independently like without requiring the user to login to salesforce

but i get error when i try to combine a
Integrity Error

 
<aura:application extends="force:slds,ltng:outApp" access="GLOBAL">
    <aura:dependency resource="c:MorningFatMelter"/>
</aura:application>
I understand from below thread is  want two apps: one as a LO app to define dependencies, and a SLDS app for running as a standalone app.

https://salesforce.stackexchange.com/questions/184029/extending-multiple-interfaces-in-auraapplication

But how do i do that?

Regards,
Tarun


 
Hi ,

My dev endpoint
https://dev02-dev-dev-ed.lightning.force.com/c/MorningFatMelterApplication.app is still seeking  for salesforce creds even when i have applied Lightning Out ltng:allowGuestAccess 
Here is the code for app
<aura:application extends="ltng:outApp" implements="ltng:allowGuestAccess" access="global"> 
    <c:MorningFatMelter/>
	
</aura:application>

Here is cmp code
<aura:component >  
    
    <aura:attribute name="backgroundImageURL" type="String" default=""/>
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>   
    <div style="{!'position: relative; height: 30vh; background:' + v.backgroundColor + ' url(' + v.backgroundImageURL +') no-repeat;background-position: center;background-size: cover;'}">
        
    </div>
    
  
    
    
    <aura:attribute name="options" 
                    type="List" 
                    default="[ {'label': 'Not Sure', 'value': 'option1'}, 
                             {'label': 'Greater Than 40 lb', 'value': 'option2'}, 
                             {'label': 'Less Than lb', 'value': 'option2'}, 
                             {'label': 'Will Decide Later', 'value': 'option2'}, ]"/> 
    <aura:attribute name="value" 
                    type="String" 
                    default="option1"/> 
    
    <div class="slds-align_absolute-center" >
        <h1>How Much Weight You Want To Loose</h1>
    </div>
    <br/>
    <div class="slds-align_absolute-center" >
        <lightning:radioGroup name="radioGroup" 
                              label="Select Your Option Then Click Next" 
                              options="{! v.options }" 
                              value="{! v.value }" 
                              type="radio"/> 
    </div>
    <br/>
    <div class="slds-align_absolute-center" >
        <lightning:button label="Previous"
                          iconName="utility:left"
                          iconPosition="left"
                          variant="brand"
                          onclick="{!c.prevPage}"/>
        <lightning:button label="Next"
                          iconName="utility:right"
                          iconPosition="right"
                          variant="brand"
                          onclick="{!c.nextPage}"/>
    </div>
        
</aura:component>

Here is creds seeking page
salesforce creds sought

As per docs below ,i just need to have communities enabed which is already active for my org
https://releasenotes.docs.salesforce.com/en-us/spring17/release-notes/rn_lightning_apps_public.htm

Any help is appreciated

Regards,
Tarun
Hi,

I am trying to run Lightning app implementing 'ltng:allowGuestAccess' so that i can share Lightning Apps with Non-Authenticated Users,Unfortunately the app fails to load as shown in figure below.The page is a simple quiz page.
lightning page hangs at loading
Here is code for application app
<aura:application extends="ltng:outApp" implements="ltng:allowGuestAccess" access="global"> 
    <c:MorningFatMelter/>
	
</aura:application>

Here is code for .cmp 

 
<aura:component >  
    
    <aura:attribute name="backgroundImageURL" type="String" default=""/>
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>   
    <div style="{!'position: relative; height: 30vh; background:' + v.backgroundColor + ' url(' + v.backgroundImageURL +') no-repeat;background-position: center;background-size: cover;'}">
        
    </div>
    
  
    
    
    <aura:attribute name="options" 
                    type="List" 
                    default="[ {'label': 'Not Sure', 'value': 'option1'}, 
                             {'label': 'Greater Than 40 lb', 'value': 'option2'}, 
                             {'label': 'Less Than lb', 'value': 'option2'}, 
                             {'label': 'Will Decide Later', 'value': 'option2'}, ]"/> 
    <aura:attribute name="value" 
                    type="String" 
                    default="option1"/> 
    
    <div class="slds-align_absolute-center" >
        <h1>How Much Weight You Want To Loose</h1>
    </div>
    <br/>
    <div class="slds-align_absolute-center" >
        <lightning:radioGroup name="radioGroup" 
                              label="Select Your Option Then Click Next" 
                              options="{! v.options }" 
                              value="{! v.value }" 
                              type="radio"/> 
    </div>
    <br/>
    <div class="slds-align_absolute-center" >
        <lightning:button label="Previous"
                          iconName="utility:left"
                          iconPosition="left"
                          variant="brand"
                          onclick="{!c.prevPage}"/>
        <lightning:button label="Next"
                          iconName="utility:right"
                          iconPosition="right"
                          variant="brand"
                          onclick="{!c.nextPage}"/>
    </div>
        
</aura:component>



 

Hi team,

I have created a next and finish button at the end of my quiz page,somehow both button looks very very big in desktop,how do i remove the big size and make it small like such small that it looks optimized in browser?
lightning page

Hi ,

I have a dev instance of lightning app,how do i make this app publicly available?

Here:- https://dev02-dev-dev-ed.lightning.force.com/c/MorningApplication.app

Regards,
Tarun
How can i add background image to lightning component like below existing quiz page existing quiz pageand align the entire content to center of page with my lightning component..below is my draft lightning page componentlightning page
also how can i add next button in my below salesforce code
here is my cmp page code
here is my cmp page code
<aura:component > <h1>How Much Weight You Want To Loose</h1> <aura:attribute name="options" type="List" default="[ {'label': 'Not Sure', 'value': 'option1'}, {'label': 'Greater Than 40 lb', 'value': 'option2'}, {'label': 'Less Than lb', 'value': 'option2'}, {'label': 'Will Decide Later', 'value': 'option2'}, ]"/> <aura:attribute name="value" type="String" default="option1"/> <lightning:radioGroup name="radioGroup" label="Select Your Option Then Click Next" options="{! v.options }" value="{! v.value }" type="radio"/> </aura:component>

 
I am trying to rewrite the quiz page content of webpage as shown in picture where user selects a question using radio button attached with salesforce lightning ,but i am facing below challenges

1)How to bring the entire content of to center of page ,currently its aligned at left top corner of page here is my cmp page code
<aura:component > <h1>How Much Weight You Want To Loose</h1> <aura:attribute name="options" type="List" default="[ {'label': 'Not Sure', 'value': 'option1'}, {'label': 'Greater Than 40 lb', 'value': 'option2'}, {'label': 'Less Than lb', 'value': 'option2'}, {'label': 'Will Decide Later', 'value': 'option2'}, ]"/> <aura:attribute name="value" type="String" default="option1"/> <lightning:radioGroup name="radioGroup" label="Select Your Option Then Click Next" options="{! v.options }" value="{! v.value }" type="radio"/> </aura:component>

2)How do i include next button in bottom of my above lightning component

existing quiz pageRegards, Tarun
Need Ideas for my college project on Restaurant Point of Sale..I mean my intention is to use salesforce lightning,Apex programming to achieve below features in my dev org.

Can anyone suggest me what should be my approach to achieve below functionalities namely A),B) and C) below,if you can go detailed steps,would be really grateful.Want to keep this thread a living document for others who wish to develop such project in future.

A) Inventory management:
-->Here i want to manage ingredient level inventory in real-time and start restocking at the right levels

B) Online Ordering:
-->Here i want customer can send order tickets straight to the kitchen

C) Table Management:
-->Here i want on-table ordering that allows restaurant customers to order food from android phone
-->Give feedback right from the table without having to wait for restaurant staff
 
My intention is to utilise Process Builder to add up 2 fields namely  No of Employees and No of location in Description field of lead.Now my question is how i can do this with the help of process builder??User-added image
Do you know how to use the new Apex Toolkit Docusign API to transfer data to a custom field (a Salesforce merge field)?

This is the instruction I've been following: https://developers.docusign.com/docs/salesforce/how-to/send-envelope/

However, there are no examples of custom fields being filled with Salesforce data. I attempted to use a custom field class, however it only has read-only properties.

What is the best way to send salesforce data to a template document?


Nama
 
I am coding using Salesforce Apex and DocuSign API. Here a part of my code :
 
DocuSignAPI.Tab tab100 = new DocuSignAPI.Tab() ;                        
tab100.Type_x = 'Custom' ;     
tab100.RecipientID = 1 ;                           
tab100.DocumentID = 1 ;                           
tab100.PageNumber = 1 ;                           
tab100.XPosition = 40 ;                           
tab100.YPosition = 40 ;
Unfortunately, I try to use other field name like "Font, FontSize" but it is not recognized : I got this message "Variable does not exist : Font".

Thanks
 
Hi ,

My dev endpoint
https://dev02-dev-dev-ed.lightning.force.com/c/MorningFatMelterApplication.app is still seeking  for salesforce creds even when i have applied Lightning Out ltng:allowGuestAccess 
Here is the code for app
<aura:application extends="ltng:outApp" implements="ltng:allowGuestAccess" access="global"> 
    <c:MorningFatMelter/>
	
</aura:application>

Here is cmp code
<aura:component >  
    
    <aura:attribute name="backgroundImageURL" type="String" default=""/>
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>   
    <div style="{!'position: relative; height: 30vh; background:' + v.backgroundColor + ' url(' + v.backgroundImageURL +') no-repeat;background-position: center;background-size: cover;'}">
        
    </div>
    
  
    
    
    <aura:attribute name="options" 
                    type="List" 
                    default="[ {'label': 'Not Sure', 'value': 'option1'}, 
                             {'label': 'Greater Than 40 lb', 'value': 'option2'}, 
                             {'label': 'Less Than lb', 'value': 'option2'}, 
                             {'label': 'Will Decide Later', 'value': 'option2'}, ]"/> 
    <aura:attribute name="value" 
                    type="String" 
                    default="option1"/> 
    
    <div class="slds-align_absolute-center" >
        <h1>How Much Weight You Want To Loose</h1>
    </div>
    <br/>
    <div class="slds-align_absolute-center" >
        <lightning:radioGroup name="radioGroup" 
                              label="Select Your Option Then Click Next" 
                              options="{! v.options }" 
                              value="{! v.value }" 
                              type="radio"/> 
    </div>
    <br/>
    <div class="slds-align_absolute-center" >
        <lightning:button label="Previous"
                          iconName="utility:left"
                          iconPosition="left"
                          variant="brand"
                          onclick="{!c.prevPage}"/>
        <lightning:button label="Next"
                          iconName="utility:right"
                          iconPosition="right"
                          variant="brand"
                          onclick="{!c.nextPage}"/>
    </div>
        
</aura:component>

Here is creds seeking page
salesforce creds sought

As per docs below ,i just need to have communities enabed which is already active for my org
https://releasenotes.docs.salesforce.com/en-us/spring17/release-notes/rn_lightning_apps_public.htm

Any help is appreciated

Regards,
Tarun
Hi,

I am trying to run Lightning app implementing 'ltng:allowGuestAccess' so that i can share Lightning Apps with Non-Authenticated Users,Unfortunately the app fails to load as shown in figure below.The page is a simple quiz page.
lightning page hangs at loading
Here is code for application app
<aura:application extends="ltng:outApp" implements="ltng:allowGuestAccess" access="global"> 
    <c:MorningFatMelter/>
	
</aura:application>

Here is code for .cmp 

 
<aura:component >  
    
    <aura:attribute name="backgroundImageURL" type="String" default=""/>
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>   
    <div style="{!'position: relative; height: 30vh; background:' + v.backgroundColor + ' url(' + v.backgroundImageURL +') no-repeat;background-position: center;background-size: cover;'}">
        
    </div>
    
  
    
    
    <aura:attribute name="options" 
                    type="List" 
                    default="[ {'label': 'Not Sure', 'value': 'option1'}, 
                             {'label': 'Greater Than 40 lb', 'value': 'option2'}, 
                             {'label': 'Less Than lb', 'value': 'option2'}, 
                             {'label': 'Will Decide Later', 'value': 'option2'}, ]"/> 
    <aura:attribute name="value" 
                    type="String" 
                    default="option1"/> 
    
    <div class="slds-align_absolute-center" >
        <h1>How Much Weight You Want To Loose</h1>
    </div>
    <br/>
    <div class="slds-align_absolute-center" >
        <lightning:radioGroup name="radioGroup" 
                              label="Select Your Option Then Click Next" 
                              options="{! v.options }" 
                              value="{! v.value }" 
                              type="radio"/> 
    </div>
    <br/>
    <div class="slds-align_absolute-center" >
        <lightning:button label="Previous"
                          iconName="utility:left"
                          iconPosition="left"
                          variant="brand"
                          onclick="{!c.prevPage}"/>
        <lightning:button label="Next"
                          iconName="utility:right"
                          iconPosition="right"
                          variant="brand"
                          onclick="{!c.nextPage}"/>
    </div>
        
</aura:component>



 
Hi ,

I have a dev instance of lightning app,how do i make this app publicly available?

Here:- https://dev02-dev-dev-ed.lightning.force.com/c/MorningApplication.app

Regards,
Tarun
I am trying to rewrite the quiz page content of webpage as shown in picture where user selects a question using radio button attached with salesforce lightning ,but i am facing below challenges

1)How to bring the entire content of to center of page ,currently its aligned at left top corner of page here is my cmp page code
<aura:component > <h1>How Much Weight You Want To Loose</h1> <aura:attribute name="options" type="List" default="[ {'label': 'Not Sure', 'value': 'option1'}, {'label': 'Greater Than 40 lb', 'value': 'option2'}, {'label': 'Less Than lb', 'value': 'option2'}, {'label': 'Will Decide Later', 'value': 'option2'}, ]"/> <aura:attribute name="value" type="String" default="option1"/> <lightning:radioGroup name="radioGroup" label="Select Your Option Then Click Next" options="{! v.options }" value="{! v.value }" type="radio"/> </aura:component>

2)How do i include next button in bottom of my above lightning component

existing quiz pageRegards, Tarun
My intention is to utilise Process Builder to add up 2 fields namely  No of Employees and No of location in Description field of lead.Now my question is how i can do this with the help of process builder??User-added image
I am coding using Salesforce Apex and DocuSign API. Here a part of my code :
 
DocuSignAPI.Tab tab100 = new DocuSignAPI.Tab() ;                        
tab100.Type_x = 'Custom' ;     
tab100.RecipientID = 1 ;                           
tab100.DocumentID = 1 ;                           
tab100.PageNumber = 1 ;                           
tab100.XPosition = 40 ;                           
tab100.YPosition = 40 ;
Unfortunately, I try to use other field name like "Font, FontSize" but it is not recognized : I got this message "Variable does not exist : Font".

Thanks