Sharepoint & CRM 4 – Automatic Company Folder Creation with Sharepoint


Looking at the problems with file storage and CRM i yet again find myself looking for a better way to manage files and file storage through the wonderful CRM Interface. The main premise again sticking to the slogan of everything all in one place.

For this situation we have seperate network fileservers that handle our data storage on the network, and it wouldn’t make sense putting all that information into the CRM Database. Not to mention it isn’t indexable or searchable, so the value add for that would be really low.

The problem that i have ran into is that i do not want to have to change coding that i had previously from another post when my clients switch from Sharepoint Services and full sharepoint server in their Microsoft CRM implmenetations. So i have devised a different way to handle this that will also assist with future CRM 4 (IFD) and offsite Sharepoint Installations.

I first created a custom attribute in Microsoft CRM named SPFOLDER, and placed it on the company tab in Microsoft CRM. This was a simple bit flag that i will use for a CRMworkflow to determine if folders have already been created on our sharepoint server or not for a particular company.

For displaying on the company form you can add a simple check to see if the bit flag is set to yes or no. If it is set to true, then show the folder on the server through a simple iframe in CRM, named SPFiles. (as in the example below)

if (crmForm.all.sti_spfolder.DataValue == true)
{
crmForm.all.IFRAME_SPFiles.src = “http://fileserver/Client%20Data/Forms/AllItems.aspx?RootFolder=%2fClient%20Data%2f” + crmForm.all.accountnumber.DataValue;
}

if (crmForm.all.sti_spfolder.DataValue == false)
{
crmForm.all.IFRAME_SPFiles.src = “http://crmserver1/SPIntegration/default.aspx?accid=” + crmForm.all.accountnumber.DataValue;
}

I have structured the folder storage by account number because we have multiple names for some companies that are similar so i found account numbers work best, but you could adjust for whatever makes sense in your organization. In this example we use Dynamics GP inhouse and it is connected with CRM so the information is populated automagically!!!

So now that we have a simple way to handle how to display the sharepoint data, we simply need to have an event to create the folder structure.

Using a simple http webrequest we can generate these folders into Sharepoint from the data we have, and this will allow us to display the customers specific data folders as well.

 

HttpWebRequest request = (System.Net.HttpWebRequest)HttpWebRequest.Create(”http://fileserver/Client%20Data/” + lbl_CustomerName.Text + “”);

request.PreAuthenticate = true;
CredentialCache credentials = new CredentialCache();

NetworkCredential netCredentials = new NetworkCredential(”sharepoint”, “Pass@word1″, “MEDTECH”);

request.Credentials = netCredentials;

//Send Request

request.Method = “MKCOL”;

HttpWebResponse response = (System.Net.HttpWebResponse)request.GetResponse();

response.Close();

 

 

 

 This will allow you to create company specific storage areas in Microsoft CRM. I have included some pictures as well to display how this looks in CRM on my machine.

89 Responses to “Sharepoint & CRM 4 – Automatic Company Folder Creation with Sharepoint”

  1. TERRANCE Says:


    Pillspot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. No prescription pills. Order drugs online

    Buy:Zocor.Female Pink Viagra.Ventolin.Female Cialis.Prozac.Cozaar.Lipitor.Nymphomax.Zetia.Lipothin.Acomplia.Advair.Wellbutrin SR.Aricept.Amoxicillin.Seroquel.Benicar.SleepWell.Buspar.Lasix….

  2. DARREN Says:


    Pillspot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. Online Pharmacy. Order drugs online

    Buy:Mega Hoodia.Arimidex.Synthroid.Prednisolone.Retin-A.Human Growth Hormone.Actos.Prevacid.Valtrex.Nexium.Petcam (Metacam) Oral Suspension.Zovirax.Accutane.Zyban.Lumigan.100% Pure Okinawan Coral Calcium….

  3. wrangler Says:

    wrangler http://vaire-gvmv.BABYCLOTHESNUT.INFO/tag/wrangler+50+goodyear/ : goodyear…

    50…

  4. ERNEST Says:

    buy@Amoxicillin.com” rel=”nofollow”>.

    Buy:Viagra Super Active+.Viagra Soft Tabs.Viagra Professional.Maxaman.Tramadol.Cialis Super Active+.Super Active ED Pack.Cialis.VPXL.Soma.Cialis Professional.Levitra.Viagra Super Force.Cialis Soft Tabs.Viagra.Propecia.Zithromax….

  5. EVAN Says:

    ████████►BUY VIAGRA◀███████…

    ████████▲▲▲▲▲▲▲▲▲████████…

  6. CURTIS Says:

    buy viagra canada

    Buygeneric drugs…

  7. TIMOTHY Says:

    dosage of amoxicillin for respiratory disorder

    Buygeneric drugs…

  8. JEFFREY Says:

    cephalexin dosage for dogs

    Buygeneric drugs…

  9. ANDREW Says:

    order cialis in canada online

    Buyno prescription…

  10. DERRICK Says:

    Cialis discount

    Buyno prescription…

  11. ARMANDO Says:

    abilify and siezures

    Buynow…

  12. DAVE Says:

    Accutane@official.site” rel=”nofollow”>.

    Buywithout prescription…

  13. JOSHUA Says:

    Aldactone@official.site” rel=”nofollow”>.

    Buygeneric drugs…

  14. FERNANDO Says:

    Amoxicillin@official.site” rel=”nofollow”>…

    Buyno prescription…

  15. SERGIO Says:

    allopurinol@and.coumadin” rel=”nofollow”>…

    Buygeneric drugs…

  16. GUY Says:

    avodart@in.usa” rel=”nofollow”>.

    Buyno prescription…

  17. JEROME Says:

    ashwagandha@supplement.now” rel=”nofollow”>…

    Buygeneric meds…

  18. GREGORY Says:

    Azor@official.site” rel=”nofollow”>…

    Buygeneric pills…

  19. SIDNEY Says:

    atarax@and.hives” rel=”nofollow”>.

    Buygeneric drugs…

  20. CECIL Says:

    Chantix@official.site” rel=”nofollow”>.

    Buydrugs without prescription…

  21. JULIAN Says:

    abilify@anxiety.now” rel=”nofollow”>.

    Buygeneric drugs…

  22. ENRIQUE Says:

    generic@Cialis.now” rel=”nofollow”>.

    Buynow…

  23. JEREMY Says:

    generic@Levitra.now” rel=”nofollow”>..

    Buyno prescription…

  24. SERGIO Says:

    dicyclomine@and.imodium” rel=”nofollow”>…

    Buygeneric drugs…

  25. LEE Says:

    i@am.pregnant.how.often.can.i.take.25mg.of.phenergan.safely” rel=”nofollow”>…

    Buygeneric drugs…

  26. ERNEST Says:

    purchase@effexor.now” rel=”nofollow”>.

    Buyno prescription…

  27. KIRK Says:

    Depakote@official.site” rel=”nofollow”>…

    Buyit now…

  28. COREY Says:

    Depakote@official.site” rel=”nofollow”>..

    Buygeneric meds…

  29. CURTIS Says:

    depakote@classification.now” rel=”nofollow”>..

    Buygeneric drugs…

  30. MARK Says:

    lisinopril aspirin interaction

    Buywithout prescription…

  31. JESSIE Says:

    Zyvox

    Buydrugs without prescription…

  32. SEAN Says:

    Zyrtec

    Buydrugs without prescription…

  33. PHILIP Says:

    side effects zyprexa overdose breathing autonomic

    Buyno prescription…

  34. DON Says:

    xeloda

    Buynow…

  35. PHILIP Says:

    xeloda bleeding

    Buygeneric meds…

  36. MATTHEW Says:

    what is the shelf life of zyrtec

    Buynow it…

  37. DARRYL Says:

    e-code for zometa

    Buyit now…

  38. REX Says:

    Zoloft

    Buygeneric drugs…

  39. DENNIS Says:

    Voltaren

    Buyno prescription…

  40. ANGEL Says:

    what works better for afib than amiodarone

    Buygeneric drugs…

  41. SHAWN Says:

    Clindamycin

    Buywithout prescription…

  42. MAX Says:

    cats zanaflex

    Buydrugs without prescription…

  43. DANIEL Says:

    xopenex coupon

    Buyno prescription…

  44. RONNIE Says:

    zyprexa increase eps complaints

    Buyno prescription…

  45. HERMAN Says:

    Xenical

    Buynow…

  46. SHAWN Says:

    Xalatan

    Buywithout prescription…

  47. WESLEY Says:

    Vitamin E

    Buynow…

  48. DAVE Says:

    Zyrtec

    Buyno prescription…

  49. RUSSELL Says:

    Zofran

    Buygeneric pills…

  50. JONATHAN Says:

    can you take zoloft and blood pressure medication together

    Buynow…

  51. TROY Says:

    Zyrtec

    Buyit now…

  52. ADAM Says:

    Zyrtec

    Buygeneric meds…

  53. DOUGLAS Says:

    zyprexa relprevv j-code

    Buygeneric drugs…

  54. MIGUEL Says:

    stopped taking prozac realized i like him

    Buygeneric drugs…

  55. FERNANDO Says:

    Rogaine

    Buyno prescription…

  56. DOUG Says:

    dermatological side effects of rogaine

    Buywithout prescription…

  57. JEFF Says:

    Prozac

    Buynow it…

  58. PETER Says:

    provera 10 days perimenopause

    Buygeneric drugs…

  59. CHRISTIAN Says:

    Orlistat

    Buyit now…

  60. REGINALD Says:

    Synthroid

    Buygeneric pills…

  61. ANDRE Says:

    Seroquel

    Buywithout prescription…

  62. HUBERT Says:

    Prozac

    Buyno prescription…

  63. VIRGIL Says:

    Synthroid

    Buywithout prescription…

  64. WILLIAM Says:

    natural orgasm enhancer

    Buygeneric meds…

  65. TYRONE Says:

    Zyprexa

    Buyno prescription…

  66. MARION Says:

    Purim

    Buyno prescription…

  67. GERALD Says:

    Patanol

    Buynow it…

  68. CHRIS Says:

    Rogaine

    Buygeneric meds…

  69. STEVEN Says:

    Retin A

    Buygeneric meds…

  70. LUIS Says:

    Prozac

    Buygeneric meds…

  71. ADRIAN Says:

    Pyridium@Pyridium.Pyridium” rel=”nofollow”>…

    Buygeneric meds…

  72. BRIAN Says:

    Tylenol@Tylenol.Tylenol” rel=”nofollow”>…

    Buygeneric meds…

  73. JARED Says:

    Topamax@Topamax.Topamax” rel=”nofollow”>.

    Buyit now…

  74. MATTHEW Says:

    Tetracycline@Tetracycline.Tetracycline” rel=”nofollow”>…

    Buyno prescription…

  75. CURTIS Says:

    Zoloft

    Buynow it…

  76. JIMMIE Says:

    Prozac@Prozac.Prozac” rel=”nofollow”>…

    Buynow…

  77. EARL Says:

    Pulmicort@Pulmicort.Pulmicort” rel=”nofollow”>..

    Buyit now…

  78. JIMMY Says:

    Prozac@Prozac.Prozac” rel=”nofollow”>…

    Buygeneric drugs…

  79. WILLIE Says:

    Strattera@Strattera.Strattera” rel=”nofollow”>…

    Buynow it…

  80. KARL Says:

    Cymbalta@Cymbalta.Cymbalta” rel=”nofollow”>.

    Buyit now…

  81. BENJAMIN Says:

    Prozac@Prozac.Prozac” rel=”nofollow”>.

    Buywithout prescription…

  82. JULIO Says:

    Cozaar@Cozaar.Cozaar” rel=”nofollow”>.

    Buynow it…

  83. JOSHUA Says:

    Cipro@Cipro.Cipro” rel=”nofollow”>..

    Buygeneric meds…

  84. LUKE Says:

    Cialis@Cialis.Cialis” rel=”nofollow”>..

    Buyno prescription…

  85. IVAN Says:

    do@you.need.to.fast.for.prograf.levels” rel=”nofollow”>…

    Buywithout prescription…

  86. GLEN Says:

    .

    Buydrugs without prescription…

  87. SHAUN Says:

    cms@coverage.of.pulmicort.respules.j7627” rel=”nofollow”>.

    Buygeneric pills…

  88. DENNIS Says:

    dapple@hydrocortisone.cream” rel=”nofollow”>…

    Buyit now…

  89. ANTONIO Says:

    purpose@of.advair” rel=”nofollow”>.

    Buygeneric meds…

Leave a Reply

You must be logged in to post a comment.