After realizing that it is not possible to receive the name of the User-Initiated Send in the Data Extract activity of Automation Studio, we contacted Salesforce for a workaround. Our client, in addition to the name of the email in the tracking extract files, would like to have the name of User-Initiated Send. Of course, not all sends are done using User-Initiated Sends, and in this case, we can have an empty value.

Unfortunately, I could not gather a lot from Salesforce support's answer. Text from the help pages where copy-pasted with no directions. But they seemed to recommend that I create Send Logs to this end. They have now activated this feature in our Business Unit.

I have followed this help page to create a SendLog DE. But I do not know what extra fields I should create to accommodate the name of the UI Send and how they should look.

On the Send Logging help page, there are mentionings of using Query Activities and AMPScript (!) but no mentioning of how the Query Activity is supposed to populate the name of the UI send in my SendLog DE and what does AMPScript have to do with any of this.

So receiving one extra variable of UI Send name in our SendJob.csv file has become a twisted issue.

  • Is hard coding the User-Initiated Send's name on each email a feasible solution? Because there is a way to populate this data on Send Logs if you set it up on your emails. Let me know if this is something that could be accepted by your client and I'll provide more information.. Jan 29, 2020 at 14:17
  • @RachidMamai They would like to analyze data based on each send and not necessarily the name of the email. To this end, they add some extra data about that specific send in the name of UI Send. This name is not available in the tracking extracts. So if we give the email some extra information, we can still cannot recognize which is which when we use it for two different sends to two different groups of recipients. All we have is a Job Id which does not have a textual representation. So we would like to take advantage of User-Initiated send name as that extra layer. Jan 29, 2020 at 14:24

1 Answer 1


You should be able to get this from the data extract (Tracking Extract) of 'SendJobs'.

Inside that file there is a column named 'SendDefinitionExternalKey'. The values in there are the external keys of the User-Initiated Sends you have used. You can then connect this to individual sends by linking via JobID (SendID) to the 'Sends' file.

enter image description here

If you need to explicitly have the name and the ExternalKey is not good enough, then you would need to utilize some API calls to gather the names that match the keys.


I think I found another way. Albeit, it relies on a Discover report, which has its own drawbacks - BUT it removes the need for the data extract and custom development to draw the name from the API Object.

What you would do is build a 'Blank Template for Email Sending Performance' report in the Reports App.

enter image description here

Once you are in there, you just need to select 'Send Definition' and 'Message Type' along with whatever other fields you want.

Send Definition - Will provide the name of the User-Initiated or Triggered Send Definition used for the send.
Message Type - Used to show if it is a 'Triggered Send' or 'Send Definition Send' (aka User-Initiated Send). The third option is 'Job Send' which is basically via the Send Wizard/UI send.

enter image description here

You can then save this to the FTP, import into a DE and then use for any SQL queries you need.

  • Yes, I think we had the same discussion in another question of mine: salesforce.stackexchange.com/questions/291241/… you are right in that 'SendDefinitionExternalKey' could be the id of the UI Send, but how to connect it to the list of the UI send to retrieve the name is probably not doable via Query Activities of Automation studio, is that correct? Do I need to use the API to that aim? Jan 29, 2020 at 15:06
  • Yes, to get the name, not the key, you need to utilize the API unless you manually store it somewhere (e.g. grab name/key via API in script activity and store in DE for reference in query). Jan 29, 2020 at 16:24
  • You could also name your External Key of the UI the same as the name when creating them as well. This would remove the need to do any other matching. Jan 29, 2020 at 19:32
  • 1
    @Disasterkid - OK. I think I found your best bet without custom Development incorporating the API. You can use the Discover 'Blank Template for Email Sending Performance' report. Inside this you build it from scratch and the field 'Send Definition' will provide the name of the User-Initiated Send or Triggered Send Definition name. To differentiate these, you can add in 'Message Type' to show if it is 'Triggered Send' or 'Send Definition Send' (aka User-Initiated). I will edit my answer to add this in. Jan 29, 2020 at 21:08
  • 1
    The SOAP API object I linked to in my answer should do that for you. Jan 31, 2020 at 13:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .