Azure Data Factory What are CreateFolderComposeRuntimeVariables? And how are they created? - azure

I'm using a lookup to parameterize a copy activity to create folders in a blobcontainer.
For some reason the activiy created (beside the expected folders),I guess, system generated folders like "body('CreateFolderComposeRuntimeVariables')?.DS_ADLS_RAW_TEST_folder02b3a53c7b64498d97e9299531de64ec.FolderName"
Is there a way to disable this in the copy activity?
Hope someone can help me out!
Kind regards,
dts

Since I do not have any clue about how you have implemented the pipeline , i will guess . I have seen similar ask before and if I am not wrong "02b3a53c7b64498d97e9299531de64ec" is the guid for activity Id . Yes I think if you are implementing dynamic expression , its not correct and if you are not using DE , then may you need to use that .

Related

Store Power Query custom function Online (Github etc..,) and call it

Main Question :
I have created various custom functions that I frequently use. I would like to store them in a repository somewhere and call them whenever necessary. I know that I can save all those functions in an Excel file and save it in OneDrive. But I would like to save them somewhere I can edit and share them easily like GitHub.
And finally, if it is possible, can we make a private repository? If i want few of my functions to be shared privately, can I protect/lock them using a password?
Helpful Resources:
Understanding the following probably might be helpful in answering this.
Resource 1:
There is a function called #shared in PowerQuery which lists down all the functions available and their respective description. You can know more about it at the following post.
I think understanding how does this function (#shared) work and Where is this information being extracted from will be helpful in answering My main question above. Which is basically, how can I make something like this for my custom functions?
Resource 2:
One possible help for this question would be an existing repository in Github by Hugoberry.
Note:
I'm not a coder, but I'm comfortable in reading/understanding codes.
I don't understand Github very clearly.
Edit 1:
For those who are looking for an answer to this question, the answer provided by Nacho works for creating a function with Manual Entry(Text/Number) inputs.
It does not work for functions that refer to a table/parameter.
After taking a long path on this I solved it. Below are the steps to do this:
First create a .pq file with Notepad like this example and push it to GitHub:
let
TextAsNumber = (valor as number) =>
let
Mostra = "The number is: " & Text.From(valor)
in
Mostra
in
TextAsNumber
Then go to the file in github and click on "Raw"
Copy the URL. Open Power Bi Desktop edit queries. Get Data from blank query and paste this:
= Expression.Evaluate(Text.FromBinary(Web.Contents("https://raw.githubusercontent.com/ibarrau/PowerBi-code/master/PowerQuery/PQFun.pq")),#shared)
That code will create you the function from repository.
Note: The same thing can be made with local path too, just replace Web by File on "Contents". Like so:
= Expression.Evaluate(Text.FromBinary(File.Contents("C:\Users\username\Documents\Folder\Sub-Folder\PQFun.pq")),#shared)
Hope this helps you to manage better the custom function repository.
PS: I'm not sure if you are going to be able to refresh in Service.

Azure Search suggestions setup

I've created an instance of Azure Search and I'm trying to make use of the suggesters functionality but struggling to find any useful information on how to get started (poor and out of date documentation from Microsoft).
I would like to use a suggestion on the name field below.
The issue is that fields require unique names and I'm unable to edit existing fields. I'm a little unsure of how the suggester tab differs from basic.
Does anyone have any advice on how best to add suggesters to my index? I am all for deleting the index and starting again if I've missed something critical.
I'm really sorry you're disappointed by the documentation. We take it very seriously and will make sure to address your feedback. Feel free to make suggestions.
On the screen you provided, you should specify a name for the suggester. Once you do that, checkboxes will show up next to your field names. Using the check boxes you will enable the Suggestions API on selected fields.
Use the name of the suggester as a value for the suggesterName parameter when using the Suggestions API : https://msdn.microsoft.com/en-us/library/azure/dn798936.aspx
Please find more details in this article about suggestions in Azure Search. It describes a sample application with code attached.
Hope that helps.

Microsoft Dynamics CRM 2011 best solution to change entity's field data type

I'm having an issue on changing data type of a field in Dynamics CRM 2011 On Premise deployment.
In my managed solution, name it "Solution 1", I have a custom field in contact entity: "new_usernumber" of type number (int). I want to change it to string as per new client's requirement (for new users they want to add prefix to it).
I can uninstall the solution and deploy the new "fixed" managed solution, but this requires me to delete the value on my custom fields. Is there any better solution for this?
TIA
There is no easy way to do this. If you don't already have data deployed in the instance using the managed solution I recommend deleting it and importing a corrected managed solution file.
There is no supported or unsupported process of changing the data type(or logical name) of a field without data loss. What you will need to do is add the new field and then write a quick update utility to copy the data from the old field to the new field.
Here is a great article on exactly how to pull off deleting a field in a managed solution. Note, if you are trying to preserve data you'll need to run the update after the step "Import devkeydetDeleteExample_1_1_HOLDING.zip"
Have fun...this is a pain, but certainly doable!
A few months ago I recreated fields in a solution (from double to int). That was a huge mistake. I'm still not sure where things went wrong but they did go wrong. Not only did I lose the date. I managed to introduce errors in the meta-layer so our MVP had to sit dear help me get it running again. He wasn't happy. I wasn't happy. The customer wasn't happy (ex-customer today, mostly because of that).
So, my humble advice - don't do that. Declare a new field instead. If you have usernumber, keep it but start using userNumberString (or userString, userName etc.). My guess is you'll keep your hair longer that way.
And if you manage to succeed, please do tell. :)

CRM 2011 using pre-image in plugin

I'm looking at using a pre-image for one of my plugins so i can get values in fields that haven't been changed. I've registered a pre-image for the entity in the plugin registration tool but when I've put some code in that tries to check it it doesn't find the image. So i was wondering what it was that I've missed that is stopping it from working. I've searched Google but couldn't really find anything, cant anyone help?
Thanks
Have you ensured your string key in your code matches the image you have registerd for your plugin step?
For example.
Your code: Entity entity = (Entity)context.PreEntityImages["Target"];
Then your Entity Alias and Name when registering the image should also be named to Target.
Jimmy, assume you are not triggering the plugin during a create operation as the pre images are not available during create.
This is another possibility that the one mentioned by peter and robben above.

Export list of Sitecore items as Excel (or other formats)

I noticed that sitecore has the option of exporting users in an Excel format.
I need to have similar functionality for exporting 'participations', (a users can enlist to take part in an 'event', and if their entry is approved via a sitecore workflow, a 'participation' item is created in the content tree)
Since mostly everything in Sitecore is in essence based on items, and I want to export items to Excel, my question is - what are some of the best ways of doing this?
Questions:
Is there a way to re-use this functionality for regular items?
Would it be a good idea to create a custom admin page (any tips on doing this?) which has some custom code that reads the items from the database using the API?
are there sitecore plugins/shared source projects that can help me achieve this?
Or does anyone have a better idea? - would it be better to just store the participations in SQL? I'm mostly doing it this way because I want to make use of the 'free' functionality offers, for example workflow, but if that leads to me using anti-patterns please shoot me ;)
Link is different now: https://marketplace.sitecore.net/en/Modules/Advanced_System_Reporter.aspx
P.S. Couldn't leave a comment to original answer as I don't have enough reputation. Oh well :)
Found a most excellent shared source module which does exactly this (and much more)!
Basically it allows you to configure (and easily extend, if you need to) any kind of table based report on 'items'.
The report module shows up as an application in the sitecore menu (like the user manager tool) and comes with features such as xml,csv, xls export. It's also really easy to set up, once you get the hang of it.
http://trac.sitecore.net/AdvancedSystemReporter

Resources