• SalesforceDevNewbie022
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

I have created survey invitation record from flow with options as: 

OptionsAllowGuestUserResponse =true and added participant.

For the first time, user is able to access the survey without login and completes it.

But for second time when he clicks on same link, he should not be able to see the survey instead he should get error message as 'Survey has been already completed'. but in my case he is able to access the survey.

Can anyone help me in this?

Hi all. I v\have a problem with my component.
I'm using lightning datatable with enabled in line editing to edit prices for products. Datatable definition looks like this:
<lightning:datatable
keyField="Id"
aura:id="table"
data="{!v.discountCodeItems}"
columns="{!v.columns}"
hideCheckboxColumn="true"
defaultSortDirection="asc"
draftValues="{!v.draftValues}"
oncellchange="{!c.handleCellChange}"
showRowNumberColumn="false"
isLoading="{!v.isLoading}"
wrapTextMaxLines="10"
onsave="{!c.handleSave}"/>
Columns definition:
component.set("v.columns",[
            {label : 'Product Name', fieldName : 'linkName', type : 'url',typeAttributes : {label : {fieldName : 'Name'}}},
            {label : 'Sales Price', fieldName : 'Sales_Price__c', type : 'currency', typeAttributes: { currencyCode: 'NOK'}, editable: true},
            {label : 'List Price', fieldName : 'List_Price__c',type : 'currency'},
            {label : 'Discount', fieldName : 'Discount', type : 'text'}
        ]);
I read changed value using:
var draftValues = event.getParam('draftValues');
and send it from component to Apex.
Te problem is when I change price from 24.00 to 24.89 JS controller sends:
[{"Sales_Price__c":"24.89","Id":"a699E000000Mc0JQAS"}]
but Apex receives
{Id=a699E000000Mc0JQAS, Sales_Price__c=2489.00}
If I change price back to 24 (without decimal part), Apex receives 24.
Do you know why it happens?

In visualforce email template we have translated the the email subject as

<messaging:emailTemplate recipientType="User" relatedToType="Contact" language="{!CASE(relatedTo.Applicant_Primary_Language__c,'Chinese','zh_CN','Portuguese','pt_BR','Korean','ko','Japanese','ja','Spanish','es','en_US')}" subject="{!$Label.PopUp_Finish_Later}">

Where we have already added translation for diffrent languages in custom label.

In email template preview translation is showinng correctly, Even if we send the email from activity history the translation is showing correctly.

but on actual email address when email is coming up it is shows the subject as follows

Sandbox: ????????????

Any Idea why this is happing OR it there any alternate way to translate the VF Email template so it should show the correct translation on actual email address