tag:blogger.com,1999:blog-7483666954520465023.post2580787499255583395..comments2024-03-27T08:10:41.737+00:00Comments on Microsoft Azure & Dynamics 365 CRM -Learn The Ropes: Facebook with CRM 2011 OR Facebook Image on entity Form in CRM 2011D. MANJALYhttp://www.blogger.com/profile/16122189495637340566noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-7483666954520465023.post-21099198060329019652015-02-24T12:09:15.085+00:002015-02-24T12:09:15.085+00:00Hi,
I tried all everything but it showing error n...Hi, <br />I tried all everything but it showing error now "Operation Aborted". I am working in CRM 2015 cloud version. Pls help me with this.<br />ThanksSumit Goyalhttps://www.blogger.com/profile/14993722276208839515noreply@blogger.comtag:blogger.com,1999:blog-7483666954520465023.post-29670218638574323122013-06-24T12:41:11.326+01:002013-06-24T12:41:11.326+01:00Thanks All :) For helping
Now its working fine.....Thanks All :) For helping <br /><br />Now its working fine... I change my code little...<br /><br />I used following <br /><br />var img =document.getElementById("WebResource_myPhoto");<br /> img.src = profilePictureUrl;<br /><br />instead of profilePictureElement.setSrc(profilePictureUrl);Amanhttps://www.blogger.com/profile/02757306312140451963noreply@blogger.comtag:blogger.com,1999:blog-7483666954520465023.post-45334974488838612522013-06-24T12:05:38.592+01:002013-06-24T12:05:38.592+01:00Yes, I have installed Rollup 12...Yes, I have installed Rollup 12...Amanhttps://www.blogger.com/profile/02757306312140451963noreply@blogger.comtag:blogger.com,1999:blog-7483666954520465023.post-20845532177056228582013-06-24T07:19:51.375+01:002013-06-24T07:19:51.375+01:00Do you have Rollup 12/13 installed? We're exp...Do you have Rollup 12/13 installed? We're experiencing the same issue after having installed Rollup 13 on the weekend on our hosted CRM 2011 environment.<br /><br />It appears that .setSrc(...) is no longer supported for Image WebResource controls.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7483666954520465023.post-32137892079339304332013-06-21T08:28:50.748+01:002013-06-21T08:28:50.748+01:00Thanks For Reply
I entered double quotes using k...Thanks For Reply <br /><br />I entered double quotes using keyboard. <br /><br />Code is working fine till profilePictureUrl and is returing following result.<br /><br />http://graph.facebook.com/100004727321486/picture?type=normal<br /><br />My FacebookId = 100004727321486<br /><br />But still giving same error..Amanhttps://www.blogger.com/profile/02757306312140451963noreply@blogger.comtag:blogger.com,1999:blog-7483666954520465023.post-17813017866638323282013-06-21T04:02:03.322+01:002013-06-21T04:02:03.322+01:00Hi, Sometimes copy paste cause issue on double quo...Hi, Sometimes copy paste cause issue on double quotes. Could you please try to enter the double quotes from your keyboard and try again. Another suggestion to use alert to see what are the values stored in the variables.D. MANJALYhttps://www.blogger.com/profile/16122189495637340566noreply@blogger.comtag:blogger.com,1999:blog-7483666954520465023.post-73261779587420584342013-06-20T10:31:18.826+01:002013-06-20T10:31:18.826+01:00Hi,Manjaly
From the last 4 hours m struggling
H...Hi,Manjaly<br /><br />From the last 4 hours m struggling <br /><br />Hope you could help me<br /><br />I follow the same process to get facebook profile pic.. But m getting error like : "Object doesn't support this property or method."<br /><br />I debug my javascript and its working fine till profilePictureUrl...after that m getting above error.... <br /><br />Help me... Thanks :)<br /><br />Here is my code<br />function profilePicture_onFormLoad() {<br /> var profilePictureElement = Xrm.Page.getControl("WebResource_myPhoto");<br /> var facebookAttribute = Xrm.Page.getAttribute("new_facebookid");<br /> if (facebookAttribute && facebookAttribute.getValue() != null) {<br /> var profileUrl = "http://www.facebook.com/" + facebookAttribute.getValue();<br /> if (profileUrl) {<br /> var profilePictureUrl = getProfilePictureUrl(profileUrl);<br /> if (profilePictureUrl) {<br /> alert('profilePictureUrl ' + profilePictureUrl);<br /> // set src attribute of default profile picture web resource.<br /> profilePictureElement.setSrc(profilePictureUrl);<br /> return;<br /> }<br /> }<br /> }<br />}<br /><br /><br />function getProfilePictureUrl(profileUrl) {<br /> // trim trailing forward slash in url<br /> profileUrl = profileUrl.replace(/\/*$/, "");<br /><br /><br /> var patterns = [];<br /> // Format is http://www.facebook.com/userid<br /> patterns[0] = /^http:\/\/www\.facebook\.com\/([a-zA-Z0-9\.]+?)$/;<br /> // Format is http://www.facebook.com/profile.php?id=987654321<br /> patterns[1] = /^http:\/\/www\.facebook\.com\/profile\.php\?id=(\d+?)$/;<br /><br /><br /> for (i in patterns) {<br /> var matches = patterns[i].exec(profileUrl);<br /> if (matches) {<br /> return "http://graph.facebook.com/" + matches[1] + "/picture?type=normal";<br /> }<br /> }<br /> return null;<br />}<br /><br /><br />Amanhttps://www.blogger.com/profile/02757306312140451963noreply@blogger.comtag:blogger.com,1999:blog-7483666954520465023.post-64951083881120171462012-11-14T20:03:37.379+00:002012-11-14T20:03:37.379+00:00Is there a way to get the userid from facebook so ...Is there a way to get the userid from facebook so that the user doesn't have to look up their userid?Anonymoushttps://www.blogger.com/profile/12554765843927104701noreply@blogger.comtag:blogger.com,1999:blog-7483666954520465023.post-59291899832704749082012-08-16T15:53:48.534+01:002012-08-16T15:53:48.534+01:00Hello, Please note that var profilePictureElement...Hello, Please note that var profilePictureElement = Xrm.Page.getControl("WebResource_myphoto"); Could you pls make sure that the webresource control name is same or Correct. Because this is just trying to set source... profilePictureElement.setSrc(profilePictureUrl);D. MANJALYhttps://www.blogger.com/profile/16122189495637340566noreply@blogger.comtag:blogger.com,1999:blog-7483666954520465023.post-89189089985984336912012-08-16T15:19:54.195+01:002012-08-16T15:19:54.195+01:00Hi Manjaly ,
I tried same java script code in one...Hi Manjaly ,<br /><br />I tried same java script code in one of my custom entity.But I am getting an error after i clicking Save button.<br /> The error is : <br /> Unable to get value of the property setSrc object is null or undefined.<br /><br />What is the issue for this ?<br /><br />Krishna Prasad Shettyhttps://www.blogger.com/profile/13761308706223448677noreply@blogger.com