Questions tagged [dynamic]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
28 views

How to clone previous row values to next row in LWC?

I was able implement adding/removing rows dynamically functionality in LWC by following this blog of ADDING/REMOVING ROWS DYNAMICALLY IN LWC. However, I want to extend the functionality such that ...
0
votes
1answer
14 views

set dynamic From name and From address for Triggered Send

I have created a sender profile with Name = %%FromName%% and Address = %%FromEmail%% I want my triggered send to pick up the sender email address and name from the the row in the same payload. I want ...
0
votes
1answer
29 views

Assigning values to sObject from csv

i've got a csv file containing records to update/insert on salesforce. I did split the csv files in 2 lists of string, one containing the field api name and one containing the field values. The ...
0
votes
1answer
35 views

How to dynamically change the start time in the query body of REST API

I am doing a REST API call using POST method with [SSJS]. In the body of the API i am sending the following parameters. var start= { "activityTypes": [ "Wait" ], "start": "2020-...
0
votes
2answers
63 views

LWC - Dynamically Get Field Info without APEX

Is it possible to get field info (esp. picklist values) in an LWC controller for dynamically specified fields? The getPicklistValue docs demonstrates fetching data for an explicit field, but is there ...
0
votes
2answers
42 views

Is there a way to dynamically generate conditions in a loop

I currently have a batch proces which gets an amount of records as a scope. I want to execute some manipulations on these records based on some conditions where only 1 value changes and where the ...
0
votes
1answer
29 views

Why dynamically creating Aura Component not working if access level is not defined?

I have a code that creates an Aura component dynamically. $A.createComponent('c:HelloWorld', (content, status, message) => { console.log('Status : '+ status); // Status : ERROR console....
1
vote
1answer
28 views

Does apex support dynamic System.Type methods for dynamic deserialization?

Right now I am doing a deserialize/serialize trick to remove a field on the account record. I want to be able to abstract this code from just the account object to sObjects in general. Right now I am ...
-1
votes
1answer
14 views

dynamic visualforce input field data-required text box for a radio field

I have a visualforce page in with lightning styling and want to fix an issue in it. There is a radio button that I need to conditionally make required.So when New is chosen the input field should be ...
0
votes
0answers
46 views

CPQ Product Rule - Dynamically Pick Product?

Lets say we have 2 flavors of our Software Bundle. Bundle A and Bundle B. Both Bundles include a Feature called "SMS Services", with 7 flavors of SMS as Product Options in that Feature. We'll call ...
0
votes
1answer
22 views

Keep content blocks up-to-date Not working?

I have an email that uses a dynamic content block which switches images based on country. When I selected the option "Choose Keep content blocks up-to-date to apply future source block edits to ...
0
votes
1answer
48 views

component.set('v.options') not working for lightning combobox

I am trying to set the options of a lightning combobox component dynamically by using component.set('v.options', myOptions) as was the case for the now deprecated ui:inputSelect but it seems not to be ...
2
votes
2answers
92 views

Dynamically creating components vs Using Aura:if

Could someone please enlighten me on the pros and cons and use-cases of creating components dynamically from JavaScript as compared to using Aura:if in the markup to render components? I am not quite ...
0
votes
0answers
20 views

Update Dynamic Email content in a Journey

I am working on a Journey with the following specs: Journey Entry: all customers new and existing who are active and opted in Journey Duration: 61 days Email content: Dynamic content Number of Emails ...
2
votes
0answers
23 views

Dynamic Deserialization and merging of JSON Attachment

I have a requirement 2 merge old and newly created JSON attachment. There are no duplicates. The JSON have below format : { "productConfigurationId": "a06cdeghijklmnoABC", "attributesByAttrDefId":...
2
votes
2answers
335 views

How to create a reusable picklist component

I have created a lightning web component which is a pick-list. My intention is to pass objectApiName and fieldApiName as parameters and then render UI accordingly. So that I can reuse this component ...
-1
votes
1answer
129 views

unable to get dynamic picklist values in lightning:select [closed]

I'm writing a lightning component that create rows dynamically and there a field to display picklist values in it. Currently my issue is that, though the values are getting fetched as expected, I'm ...
0
votes
0answers
121 views

How to create Dynamic Column Header for Lightning Data Table?

I have some data bring into Salesforce using integration. Can not create Custom report based on the requirement. I choose to go with Lightning Page. Data Points Example: Last Month, 2 Months Ago, 3 ...
2
votes
1answer
125 views

Dynamic Flag for Deep Linking MC-Deep-Link

We use the "mc-deep-link" tag in our href to ensure we are either pushing our customer into our App environment or to our website if the app doesn't support that specific link. All our links are ...
0
votes
1answer
34 views

Dynamic rows in lightning component throwing error

I'm trying to create a lightning component that will add and delete rows. I followed a tutorial available online and here is my code. Component: <aura:component controller="testCntrlr"> &...
1
vote
0answers
75 views

example for banning functions in $A.createComponent after Spring'19

Could someone share a piece of code that will stop working after the critical update "Prevent Creation of Function Expressions in Dynamically Created Aura Components" will be activated? I'm not quite ...
3
votes
2answers
175 views

Any way to create an aura:if component dynamically?

Is it possible to create an aura:if component having a isTrue evaluating dynamically to the value of an attribute? I've tried the following and I'm getting a checkbox that is visible regardless of ...
1
vote
3answers
3k views

How can I dynamically load a static resource image in LWC?

I am trying to dynamically load an image from a static resource within LWC. When the user loads the page, a query parameter is provided called locationCode. Depending on the locationCode, a different ...
0
votes
0answers
56 views

insert attachment getcontentaspdf not loading data dynamically

I have a method that call a vf page and render as pdf the following Pagereference test = new Pagereference ('/apex/claire'); return test; that gives me the page I am expecting after that the ...
0
votes
0answers
12 views

Using and tracking the same dynamic bloc used in 2 different emails

I have two Journeys with one email each and I want to use the same dynamic content block in each of the 2 emails. Is it possible to track the Clicks and the Opens for the block used in 2 different ...
0
votes
0answers
20 views

Tracking same dynamic module performance in 2 different emails

Could you please tell me if you know how the following can be done: track the same Dynamic module performance (Clicks, views) used in two different emails within two different Journeys? For example: ...
0
votes
1answer
112 views

How to track Dynamic Content Block?

Is there a new way (or better way) to retrieve the tracking of the Dynamic Content blocks from an Email without using impression tracking? I saw there are few posts about this topic but from many ...
1
vote
0answers
114 views

Add Salesforce Compact Layouts to Custom Dynamic Lightning Component

We are trying to use some of the standard LEX functionality for a Custom Dynamic Lightning Component. We have a custom lightning component where a user would choose one of 5 objects (but could end ...
3
votes
2answers
509 views

New Picklist Values added via Metadata API stay inactive

I am using the Metadata API wrapper from https://github.com/financialforcedev/apex-mdapi to dynamically add picklist values to an existing field. @Future(Callout=true) private static void ...
0
votes
1answer
298 views

AMPScript For Loop Dynamic Variable

I am trying to get a dynamic variable set inside a script block with AMPScript. Here is what I got: FOR @i = 1 to 5 DO TreatAsContent( Concat( "SET @Test", @i, " = ", 'some value' ) ) NEXT @id ...
1
vote
1answer
241 views

Add one item per line using aura: iteration and lightning button

Clicking an "add" button would like the lines below to be always added one below the other. Today I have a problem in which two items are added per line. Right way: Como está hoje (errado): My ...
1
vote
1answer
105 views

Populate Contact Information using Selenium

I am very new to Selenium. Basically i need to populate the fields below using selenium web-driver in Visual Studio. Because of the lightning components i am having trouble using XPath. Need help ...
0
votes
1answer
265 views

How to make dynamic picklist?

I have one custom object Backlog and I have one picklist field Full_Name_of_the_Specialist__c which is having manually inserted all the Names of the Specialist profile. Now when new employee come, I ...
2
votes
1answer
71 views

Refer to a dynamic variable on a link

I'm facing an issue since yesterday. I wanted to test the fact that, within a FOR loop, i'm able to dynamically create variables for each link. A quick example: %%[ For @u = 1 to 10 do Set @row = ...
0
votes
0answers
305 views

Create dynamic rest api url in apex

I have a requirement where I have 4 fields in which a user will fill phone numbers. On clicking save it will make a Rest API call. The 4 phone numbers have to go in an array in the URL as shown below. ...
0
votes
2answers
140 views

Passing argument to onclick event

I am dynamically creating HTML <div> and I need to handle the onclick event : when the user clicks on it, I want to call a controller function and this function requires an argument. How do I ...
0
votes
1answer
301 views

Dynamic DOM : firing event on click

I am dynamically creating some DOM elements inside my component's controller and adding them to the page. I need to set the onclick event on these elements to call another controller function that ...
0
votes
1answer
17 views

Make field names dynamic

I have two fields on Opportunity called FY1 and FY2. Now, my requirement is that the name of the fields need to be dynamic and change every Financial Year e.g first it would be FY18 and FY19, then ...
0
votes
1answer
58 views

Identify users device

Is it possible to identify the device which is using each subscriber and store that info as a variable with a value, and after use that value to do something like the example below? %%[set @...
0
votes
2answers
115 views

Reply Mail Management - Custom Email Body

I am trying to insert the code %%=ContentBlockbyId("370")=%% on my RMM body, but when I got the RMM message SFMC it isn't translated the AMPScript and I am receiving an email with the message %%=...
1
vote
1answer
618 views

How to access a dynamically generated html class name from a JS controller?

I was trying to concat a class name with index from the iteration component. If it's correct, how can I access this value from the JS controller? Component: <lightning:overlayLibrary aura:id="...
2
votes
1answer
469 views

Dynamic lookup? What is the best practices?

I know that lookup is 1-M relationship between just two objects. Tried to find but so far wasn't able a proper way. Maybe someone faced the same case and can share or give an advice? Use case: I want ...
0
votes
1answer
82 views

Adding new Fields to Sobject or changing field values dynamically

I have a Sobject Record which is already instantiated and fields are added along with values. sObject sObj = Schema.getGlobalDescribe().get(Name of Object).newSObject() ; sobj.put(...
0
votes
1answer
84 views

Give customer keys with batch processing

I need to build a dynamic content with dynamic images with AMPScript. If I use ContentImageByKey(), I need to change the customer key of every picture individually and logically(for example, use the ...
0
votes
1answer
14 views

Folder accessible to non admin but not dynamic report

I created dynamic report in an folder and linked in custom button. Non admins were given viewer permission for the folder. However, it is not accessible via custom button. Am I missing something here? ...
0
votes
1answer
360 views

Lighting:tabset rendering tabs in “more” drop down when tabs are populated dynamically even though it has enough space to display all tabs

My expected result should be, all tabs display in one line with out "more" option by using dynamic code. When i tried dynamic code, Tabset displays only 3 names and rest of them in more option as ...
1
vote
1answer
196 views

Dynamic report through custom link- formatting

I am using Dynamic reports through custom link URL https://xxx.my.salesforce.com/00Om0000000dka3?pv0={!Contact.Contact_Playhouse__c}&pv1={!Contact.Id} The report appears as below onclick of ...
1
vote
2answers
403 views

Dynamic Sender Profile not working - Marketing Cloud

I am trying to implement a dynamic sender profile. I have followed instructions from answers on similar questions on stack exchange. From what I understood this should work. However, every time I do a ...
1
vote
1answer
133 views

Can <lightning:flow> be nested inside of </aura:iteration>, getting Uncaught Error in $A.getCallback() [Cannot read property 'startFlow' of undefined]

Trying to display more than one flow in the lighting component. Name of the flow will be passed by apex class <lightning:tabset> <aura:iteration items="{!v.lsCustomTabs}" ...
0
votes
2answers
903 views

Dynamically creating lightning:inputField with a div

Currently I have this loop which can dynamically create a lightning:inputField: for(var i = 0; i < editFieldsToRender.length; i++) { $A.createComponent ( "...

1
2 3 4 5