Questions tagged [dynamic]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
3answers
4k views

Apex - How to pass dynamic value to json?

Below is a string which I want to dynamically pass to Json: String username = 'IntegrationUser' Below is the json format wherein I want to pass username. But this does not work. String payload = '...
3
votes
1answer
396 views

Visualforce Email Templates Dynamic Subject Child Object

I have looked through a number of different threads and haven't found any clear answers to populating a child object's value in the subject of a Visualforce Email Template. I want to populate the ...
0
votes
1answer
984 views

How can I dynamically create aura:attribute?

I would like to dynamically create components from other component. The thing is that, if any of those child components use events, I'd like to create the needed aura:attributes to store the info. ...
2
votes
2answers
2k views

Action failed: lightning:button$controller$handleClick [d.run is not a function]

I have a lightning component called modal which is used in another component called Split, the modal takes an array of buttons to render them (and does some more) I have a working version of it in ...
1
vote
3answers
425 views

Marketing Cloud breaking our Ampscript with HTML code

We have a lot of automated emails set up in Marketing Cloud which are used in journeys, triggered sends etc. Most of them are built in Content Builder. We came in this morning to find several journey ...
5
votes
1answer
1k views

Dynamic Lightning Input Component?

I have a custom Lightning component which is a simple input form with the Contact fields(required). Obviously the controller class has an insert statement for the Contact sObject. Is there a way I ...
0
votes
1answer
270 views

Randomize dynamic content blocks

I have one dynamic content block that is filtered off a field in a data extension, but another that I want to be a random selection of 2 options. Sort of an A/B test, if you will. Is there a way to ...
0
votes
1answer
2k views

How to filter a list of records on clietndside based om checkbox criteria

I have tried using filters in a lightning component which filters records based on criteria. How can I toggle the filter based on true or false of a checkbox. The issue I have currently is when ik ...
1
vote
1answer
152 views

Trying to set a record's value based on a field via string. Is this dynamic approach possible in Salesforce?

Apologies if this was already answered, but I didn't see a clear cut solution for this issue in Salesforce. I want to be able to dynamically set values for a record based on a predefined list of ...
1
vote
1answer
425 views

Compare same Object types dynamically

How to compare two types of objects (NOT SOBJECTS) at runtime? Example: Object ob1 = (String)'ab'; Object ob2 = (String)'ab'; Apparently if I debug ob1==ob2 gives me false. (false statement, see ...
1
vote
2answers
1k views

Dynamic Sender Profile not working

I would like to automatically fill the "From Name" field of our sender profile. Using AMPScript i created a new Sender Profile with %%=v(@FromName)=%% in my "From Name" field. Then in my template-...
4
votes
1answer
268 views

Lightning components - expressions in styling issue

I have a custom popup component for displaying help text near form fields. I wanted to make it more dynamic - make the position of the nubin a component attribute. And Now I'm facing a strange ...
0
votes
1answer
464 views

Remove special character in javascript for a dynamic value

I have a javascript method $(document).ready(function() { pageViewed('{!currentName} - Detail Page'); Here currentName can have special characters like a single quote. Is there ...
2
votes
1answer
1k views

ComponentService.createComponents(): 'callback' must be a Function pointer. : false

I want to be able to call $A.createComponents(type, attribute, calllback); with values in an array. SF doc I am following: Dynamically Creating Components. But the obvious value of this would be to ...
4
votes
2answers
1k views

Can't access values of list attribute reference of dynamically create Lightning component

I am creating this Lightning component: <aura:component> <aura:attribute name="record" type="Account" /> <aura:attribute name="recordList" type="Account[]" /> ... </aura:...
0
votes
1answer
198 views

Dynamic Content - based on date

I'm reading up on dynamic content and it all seems to be based only on subscriber attributes or DE/audience attributes. Is there a way to have X number of dynamic content blocks that cycle through ...
0
votes
1answer
2k views

How to get Reference field value for lightning:datatable data attribute

I'm creating the lightning:datatable dynamically and passing the data by querying from contact object, and I have a parent Account.name field in the SOQL query and I have specified the field Account....
2
votes
2answers
2k views

Aura:if use a function as expression

I wish to check a condition inside an aura:iteration. The condition should be dynamically set according to the current item in the iteration. I'm trying to achieve the following : <aura:if isTrue=...
0
votes
2answers
2k views

lightning dynamic component datatable onclick/onrowselection

I have a lightning component that dynamically creates a lightning:datatable when apex returns a list of records. For the most part its working, but im trying to add an onclick event to the row, but ...
0
votes
1answer
309 views

Impression tracking on dynamic content block with amp script

I want to add Impression tracking to a dynamic content block that is added with amp script. So the dynamic content block looks like this in our email template: %%=ContentAreaByName("my contents\...
0
votes
2answers
1k views

cannot access aura:id of dynamically created Lightning Element [duplicate]

When I click on lightning:button(Create), I am able to dynamically create lightning:input element from js controller but When I click on lightning:button(Set Value), I am not able to set value for the ...
2
votes
1answer
141 views

Dynamic Component issues

I am creating a component on click of button using $A.createComponent, which is inside a parent component. <aura:component> <aura:attribute name="displayNoResults" type="Boolean" default="...
4
votes
0answers
274 views

Dynamically created selectOptions not appearing in dynamically created inputSelect from FieldSet

I'm creating components from a fieldset, which means determining that a field in the set is a picklist in real time, then creating that inputSelect dynamically, and then creating the ...
0
votes
1answer
73 views

Why don't changes made to content blocks in dynamic content update automatically?

I have an email with a dynamic content block that has 10 rules and 10 associated content blocks. When I make a change to any of the associated content blocks the content doesn't update in the dynamic ...
0
votes
1answer
520 views

Dynamic link is not working after email sent (gmail, outlook..etc)

We have built a dynamic link for subscriber, below is script and html i used SET @Mid = field(@row,"Meeting_id") Set @FURL = CONCAT('http://www.abc.fr/xyz/meetings/v3/','?meetingId=',@Mid) ...
0
votes
2answers
93 views

How do you avoid values to duplicated?

I'm looking into a DE of past customers transaction, all transactions that contain samples are retargeted with their parent product. In my an email, I'm trying to display up to 4-3 parent products ...
0
votes
1answer
143 views

Can we use Ampscript in Html email body to collect multiple click details?

We have set of journey flow which has decision split for click on all links based on that activity another email will be deployed. But we have to add dynamic field values after click decision split ...
2
votes
0answers
400 views

How to dynamically query in Remote Object Model?

See my code comments in my controller for what I'm trying to do. This article might help as well: Overriding Default Remote Objects Operations Page <apex:page> <apex:remoteObjects &...
1
vote
1answer
1k views

Dynamic visualforce table using Map

I was originally building lists using dynamic query which works great, like so: extension: // initialize lead variables and columns string leadFields = [SELECT lead_fields__c FROM ...
0
votes
0answers
79 views

facing Access Check failure issue with Dynamic Picklist lightning component

I'm trying to dynamically create a picklist in lightning component. But i am facing Access Check Failure Access Check Failed! Component.setupAttributes():'size' of component 'markup://ui:...
2
votes
0answers
339 views

Dynamically Created Custom Lightning Components Creating Old Versions

I have a parent component that dynamically creates child components based on the state of the page. When I make a change to the child component, the page does not create the new version of the child ...
0
votes
1answer
45 views

Using Lookup on Dynamic block

Attempting to use this string within my dynamic content block with rules that are tied to %%KeyField%%. Looking to pinpoint where my issue is coming from and why it isn't working on test/live sends. %...
1
vote
1answer
2k views

Dynamically create a tab in Lightning component

I have a lightning:tabset with one tab containing a list of records. When user clicks on a button next to a record I want to display a second tab with the record detail. My component looks like this: ...
0
votes
2answers
177 views

Is there any better tool than “Send preview” to see emails?

I need to share the emails with others but should be done in a more smooth way than the horrible Send Preview functionality.... Is there any other tool different from sending the itself email to ...
0
votes
2answers
104 views

Which is the best way to update VF page input fields using Javascript? Why?

I have seen both of these being used to update VF page inputs in Javascript dynamically. Approach 1: document.getElementById('{!$Component.thePage.theForm.theField}').required = true; Approach 2: ...
1
vote
2answers
3k views

Adding onclick to dynamically created button

I have a component that dynamically creates buttons which, when clicked, apply filters and then re-query the back end for data. While I can assign onclick events to each button, I can't find a way to ...
1
vote
1answer
329 views

Simple Dynamic Text in outbound SMS

I've been sending SMS through ExactTarget for years, but we want to cater specific info to individuals with SMS. I know nothing about AMPscript, but if I could get help writing a very simple template, ...
1
vote
2answers
1k views

How to dynamically retrieve FieldSet fields using Apex

I'm following the following tutorial: Using field-sets with visualforce I'd like to retrieve and populate a table's columns dynamically based on the fieldset. I would like to do this by somehow ...
1
vote
1answer
1k views

Lightning Dynamic Component Creation

I am creating some dynamic components inside a lightning component. They are created on the click of a button. The code seems to executes or render differently when the button is clicked first ...
1
vote
3answers
821 views

Create list dynamically

I know that the same post exists here for creating list dynamically but i have gone through the posts and got some idea through that but i am still unable to get what i need. List<ZenObject__c>...
4
votes
2answers
9k views

Setting Dynamic style classes for Aura components

As in doc it should be possible to set style classes for #[Lightning] components using a Ternary operator. <div class="{!v.IsTest ? '' : 'slds-hide'}">test</div> But it seems when I do ...
2
votes
1answer
1k views

Ampscript for Footer Content

I have about four footer variations that we use at the bottom of our email templates. I've been trying to place the various footers in: MyContents\Company_Footers\FooterNameHere An example footer ...
1
vote
1answer
38 views

Capturing the Lead deletion log using dynamic apex

I am trying to create an entry in the deletion_log__c object before the lead record gets deleted. I would like to capture all the lead field names along with values in the deletion_log__c object with ...
2
votes
0answers
206 views

What is the best way to remove item from Component.Aura[] type dynamic component list in lightning component?

I've read through most of the questions on this issue of ability to remove an item dynamically from DOM, and did understand that this might not be possible. So I would like to extend the question to ...
1
vote
2answers
250 views

AMPscript to populate order items

I am looking to use AMPscript in Marketing Cloud to populate an email that contains order information which will be housed in the sending data extension. I will need to populate the Item Description, ...
0
votes
0answers
133 views

dynamic pageblockbuttons not showing on bottom location

i'm trying to show pageblock button in bottom side but its not showing on bottom only showing in top location how to set bottom Component.Apex.pageBlockButtons pbButtons = new Component.Apex....
2
votes
1answer
803 views

Salesforce Lightning: Dynamically Create Tabset/Tab

I'm currently having an issue when trying to tabset with dynamic tabs. It appears that I need to use "aura:set" to set the label for each tab. When I do that though, I receive the oh so incredibly ...
0
votes
3answers
284 views

Dynamically route approval to user

I have 3 objects object 1, object 2 and user. object 2 has a lookup to user and object 1 has a lookup to object 2. I want to submit a record of type object 1 for approval to the user as defined by ...
0
votes
2answers
227 views

How to HIDE selective values in a multipick list field at visualforce page according to logged in user

I have a multi-select picklist field 'PermissionsAllowed' at object 'AssignPermissions' with 4 values 'Country A User' , 'Country A Processor', 'Country B User'and 'Country B Processor'. Now ...
0
votes
0answers
287 views

Making detail page to dynamically update without reloading the page

I am using a visualforce page to create child records of an object.This visualforce page is located on the sidebar of detail page. Some actions on this visualforce page are creating a record of "...