I have a login flow which uses the visual flow and displays a welcome message to the user when they login.I don't see this in metadata ,How can I deploy the login flow using ANT Migration tool.


Login Flow is nothing but Visual Flow that can be sent into login for each profile.

So when you want to transfer Login Flow.You need below components.

  1. Visual Flow(Login Flow that you have created).

  2. Custom Object(You must storing flows information in custom object ).

So when you want to deploy Login Flows then you can modify your package.xml like this:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">


The above code is just a sample.You may need to add more components like custom field of objects or Screen of Visual Flows.

You can refer the below link:



Let me know if it helps.

| improve this answer | |
  • Hi, Thank you for the reply. When I extract the flows it only lists the visual flow and not login flow I created. – KSR Nov 2 '17 at 13:52
  • Can you please check if the name of your login flows available in package.xml? – Dhananjay Patil Nov 2 '17 at 13:54
  • The package.xml contains the below <types> <members>Welcome_Message</members> <members>Welcome_Message-1</members> <name>Flow</name> </types> <types> <members>Welcome_Message</members> <name>FlowDefinition</name> </types> <types> <members>Test Profile</members> <name>Profile</name> </types> – KSR Nov 2 '17 at 14:10
  • looks like your flow is present in package.xml As I said earlier,Login flow is nothing but your visual flow. If you have deployed package.xml to your new/existing org,you can check if the login flow is deployed or not. – Dhananjay Patil Nov 2 '17 at 14:12
  • I dont see the name of the login flow , but I can see the profile to which I assigned this flow under flowdefinition <members> – KSR Nov 2 '17 at 14:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.