Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
5

In order to use the outArgument from one REST activity as an inArgument for another REST activity the schema is required. The schema is needed to compare the data types of the value being passed. The config.json using the inArgument needs to have "schema": { "arguments": { "execute": { "inArguments": [ { "key": { ...


5

Realizing this question is over a year old I thought I would still add my answer that does not require an API call but instead uses Postmonger. Using the Postmonger events requestInteraction and requestedInteraction you can get the JSON of the entire interaction, including the InteractionID and any activity keys. You can then parse the JSON and set that ...


3

I kept working at it and I found that I can use array indexing in the cmp.getReference() so data-binding is applied correctly. createChildComponent : function(prop) { return ["c:childComponent", { "property":prop }]; }, renderProperties : function(cmp, properties) { let definitions = properties .map(function(prop, ...


3

The easiest way do to this would be to use aura:if: <aura:if isTrue="{!v.flag}"> <c:CstmComp value="{!v.Case.Field1__c}"/> <aura:set attribute="else"> <c:CstmComp value="{!v.Case.Field2__c}"/> </aura:set> </aura:if> You could probably also use SecureComponent#getReference and wire it up in your controller, ...


3

Another option apparently is using requestedInteraction together with a requestInteraction event called by the Custom Activity. Here is an example code: connection.on('requestedInteractionDefaults', function(settings) { if( settings.error ) { console.error( settings.error ); } else { defaults = settings; } console.log('...


3

I don't know of any possibility to retrieve the event definition key using data binding, but here is the solution I use for my custom activities: I added a field to the configuration dialog of the custom activity where I enter the event definition key when configuring the activity When the configuration is finished I construct/overwrite the arguments with ...


2

You can also use the 'activity customer key' there. It will look like "REST-1", "WAIT-3", "MOBILE-2", etc. { "caseID":"{{Interaction.REST-1.caseID}}" } You can get it by querying for details about your interaction: headers: Authorization: Bearer <token> Content-Type: application/json GET https://jbinteractions.exacttargetapps.com/fuelapi/...


2

Ran into a similar issue - the documentation is a bit confusing. We shouldn't include square brackets when using databinding, so your inArguments should look like (assuming JSON): "inArguments": { "myCustomSubject": "{{Contact.Attribute.\"Member Preferences\".Preference}}" } (Quotes around "Preference" are optional, since it has no whitespace.) In the ...


2

What you should do is follow this example and use AMPscript in your subject. "inArguments":[ { "firstName":"{{Contact.Attribute.__your-de-name__.FirstName}}"}, { "lastName":"{{Contact.Attribute.__your-de-name__.LastName}}"}, { "emailAddress": "{{Contact.Default.Email}}"} ], When you fire the event, you can pass data ...


2

You can use <apex:inputText required="{!reqd}" value="{!form[localFieldName]}" /> as <apex:inputField/> is applicable to SObjects. For more info, refer apex:inputText


2

The idea behind this feature is that an activity can be placed anywhere in a journey. So, while Interaction-1 may have it first, Interaction-2 may place it further downstream, such as fourth. In each scenario, the 'activity customer key' (ie. REST-1), will be different. So this is a design-time, interaction-specific setting. To get information at runtime ...


2

So after some additional tests, it appears it is not possible to bind attributes in an iterable (v42.0). Meaning {!item} is the same as {#item}. However, you can still pass in attributes from outside the scope of the iteration. So my workaround is to store the changes to the list items in temp or copy list (using the same iterable list, will cause issues ...


2

You can use Data-Binding to achieve this. Data-binding allows your custom activity to interact with your data via the context of either the Contact, the Interaction, or the Event How to Use Data-Binding In order to use the data from your Trigger, your inArgument would look something like this: {{Event.my-custom-product-trigger-key.ProductId}} As for the ...


1

It would seem that your ParentAppWithListAttrController.js should be using v.JustAList and v.JustAnItem where v.JustAnItem is located in the position in v.JustAList where the Event occurred. The old value of v.JustAnItem is irrelevant. You just need to put the new value in the proper location in the list, then set JustAList. If you don't set it, the change ...


1

You didn't actually save the record. As an aside, all this work you've done is basically pointless, because two-way binding works automatically; when docName is updated in the child, the simpleRecord.Name value in the parent is automatically updated. If you want to update the record, all you need to do is call saveRecord: handleComponentEventFired : ...


1

You should be able to achieve the required output using single SAQL. The below SAQL code should help you, where I have selected both the columns first and in the next line, the calculated value is displayed. q = load "database"; result = group q by 'all'; result = foreach result generate {{column(static_2.selection, [\"value\"]).asObject()}} as 'revenue', ...


1

You can't use a callback handler to update an unbound variable, because the other elements won't realize that anything's happened. The same article you quoted states: Don’t use a component’s init event and client-side controller to initialize an attribute that is used in an unbound expression. The attribute will not be initialized. Use a bound ...


1

I'm not sure I understand fully what you want to do with just one activity. But to answer your question, no, you can't define an outArg to be used as an inArg within the same activity. inArgs are for data coming into the custom activity. Journey Builder will POST to your execute endpoint with a payload that includes inArguments. Your activity can use ...


1

I've seen this issue when Journey Builder is unable to bind the ContactKey in your Events request to a Contact Record. I think you have probably missed a step when creating an Event in Contact Builder. Please can you try following these steps. 1. The first step is to retrieve the Event Definition Key (a unique identifier for an Interaction Trigger) ...


1

The error may be due to a variety of reasons; for instance, if your email is invalid or your data-binding isn't valid). When viewing the status page (Admin/Contacts) open the Network tab in Dev Tools in Chrome and click on the traceevents route. More detail is contained in the Response tab. Copy the json and paste into a json pretty printer to format it. ...


1

I think the parameter is 'url' now in config.json, not 'uri'


Only top voted, non community-wiki answers of a minimum length are eligible