tag:blogger.com,1999:blog-55017021155954215052024-03-14T06:26:46.741+00:00 Powered by PassionWork smarter, not harder.Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.comBlogger291125tag:blogger.com,1999:blog-5501702115595421505.post-51424144835168838272023-09-13T15:15:00.000+01:002023-09-13T15:15:06.882+01:00Azure time trigger function is not Triggering<p> After deploying the Azure function into Azure it does not start triggering because of the time zone of the function.</p><p><br /></p><p>Add the configuration Based on your time zone.</p><p><br /></p><p><a href="https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc749073(v=ws.10)?redirectedfrom=MSDN" target="_blank">Microsoft Time Zone</a></p><p><br /></p><p>WEBSITE_TIME_ZONE</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgoRQuY5SxHdpRj6OE0-9wJO85F281kpVV2bWjhbgremf5UAFERuSHoO5RqXR94ApgIyUaODqjJv4476eqaRNUI-Pw85oWZTRSZniwrvd2ff-iBjJVqcOozeSR_-yzxlWtpQ_jxvTYyRIFjiqGbZxajLBpFYmolV83SgpRMr5uGBi-FykkM9Xh12uXwRZM" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="434" data-original-width="1805" height="96" src="https://blogger.googleusercontent.com/img/a/AVvXsEgoRQuY5SxHdpRj6OE0-9wJO85F281kpVV2bWjhbgremf5UAFERuSHoO5RqXR94ApgIyUaODqjJv4476eqaRNUI-Pw85oWZTRSZniwrvd2ff-iBjJVqcOozeSR_-yzxlWtpQ_jxvTYyRIFjiqGbZxajLBpFYmolV83SgpRMr5uGBi-FykkM9Xh12uXwRZM=w400-h96" width="400" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /><p></p><div><br /></div>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-27211947007280027962022-05-19T14:31:00.011+01:002022-05-19T15:54:59.068+01:00D365 power automate flow call from ribbon button<p> <span face=""Segoe UI VSS (Regular)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Ubuntu, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"" style="background-color: white; font-size: 10pt;">To achieve this, two extra managed solutions are imported into the environment:</span></p><ol style="background-color: white; box-sizing: border-box; color: rgba(0, 0, 0, 0.9); font-family: "Segoe UI VSS (Regular)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Ubuntu, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px; margin-bottom: 0in; padding-left: 25px;"><li style="box-sizing: border-box; list-style: inherit;"><span lang="EN-US" style="box-sizing: border-box;">Ribbon Workbench: </span><span lang="EN-US" style="box-sizing: border-box; font-size: 8pt;">https://ribbonworkbench.uservoice.com/knowledgebase/articles/80806-download-ribbon-workbench-for-crm-2011-2013-2015-2</span></li><li style="box-sizing: border-box; list-style: inherit;"><span lang="EN-US" style="box-sizing: border-box;">Develop1 SmartButtons: </span><span lang="EN-US" style="box-sizing: border-box; font-size: 8pt;"><a href="https://ribbonworkbench.uservoice.com/knowledgebase/articles/896958-smart-buttons" rel="noopener noreferrer" style="box-sizing: border-box; cursor: pointer; text-decoration-line: none;" target="_blank">https://ribbonworkbench.uservoice.com/knowledgebase/articles/896958-smart-buttons</a></span></li></ol><div><span color="rgba(0, 0, 0, 0.901960784313726)" face="Segoe UI VSS (Regular), Segoe UI, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, Helvetica, Ubuntu, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"><span style="font-size: 14px;"><br /></span></span></div><div><div class="separator" style="clear: both; color: rgba(0, 0, 0, 0.9); font-size: 14px; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhyAsqRKcHIuCdM0sFakviCvTyDZBBnKArw2uPVEAk3xdJRse3zsFh33ePft20i4YXYa9oHDTxWMc8qb2VWm8_v5sOpsVD1fU-4_n-vme4nr-NiOZ9X1dSY3kKtpfgYT8w91D5sNOT7twwalLtgCJowlCyvJEmOK3ekJaUgyCMJwZX028loigf0jueq" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="296" data-original-width="1304" height="146" src="https://blogger.googleusercontent.com/img/a/AVvXsEhyAsqRKcHIuCdM0sFakviCvTyDZBBnKArw2uPVEAk3xdJRse3zsFh33ePft20i4YXYa9oHDTxWMc8qb2VWm8_v5sOpsVD1fU-4_n-vme4nr-NiOZ9X1dSY3kKtpfgYT8w91D5sNOT7twwalLtgCJowlCyvJEmOK3ekJaUgyCMJwZX028loigf0jueq=w640-h146" width="640" /></a></div><div class="separator" style="clear: both; color: rgba(0, 0, 0, 0.9); font-size: 14px; text-align: center;"><br /></div><div class="separator" style="clear: both; color: rgba(0, 0, 0, 0.9); font-size: 14px; text-align: center;"><br /></div><br /><span style="color: #a00031;"><span style="font-size: 14px;">Create</span></span><span color="rgba(0, 0, 0, 0.901960784313726)"><span style="font-size: 14px;"> a new flow</span></span></div><div><span color="rgba(0, 0, 0, 0.901960784313726)"><span style="font-size: 14px;"><br /></span></span></div><div><span color="rgba(0, 0, 0, 0.901960784313726)"><span style="font-size: 14px;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjr1KgSrYIWhKrKx89NBWuVYciMU_Bl0GByAtywZNDT-l6VosVeOKthbYLhADKk1u6Mn6Qxn0GGvp0cXui0v_Z1FJcB8luAqYCq71tzInS7xbbG8-XV_kUD5DW4qO_VrXE_L_sZkv4MzNmQX7dZ1Km81AmxUoeLt0EsdtHfETu2-zTsBXTS_rdB-3V0" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="675" data-original-width="645" height="640" src="https://blogger.googleusercontent.com/img/a/AVvXsEjr1KgSrYIWhKrKx89NBWuVYciMU_Bl0GByAtywZNDT-l6VosVeOKthbYLhADKk1u6Mn6Qxn0GGvp0cXui0v_Z1FJcB8luAqYCq71tzInS7xbbG8-XV_kUD5DW4qO_VrXE_L_sZkv4MzNmQX7dZ1Km81AmxUoeLt0EsdtHfETu2-zTsBXTS_rdB-3V0=w611-h640" width="611" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEin2XTZHaKAMP6qsAMxpCVr_v_vW6Nv9n0DgrXpzl76U0IPpgJP8_dT6Zz0cePhb9wealxm_TRkJ-IehakNyy76LuSPJxvIlVsQc69jy9hK5PmN8Y4rx1RUBKAFx70IgvUs_skSlxZ6qPgy2gm4Tv8IbwDhd-73bdgifErUSPaOxLx86c20L4Hgusm6" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="450" data-original-width="566" height="509" src="https://blogger.googleusercontent.com/img/a/AVvXsEin2XTZHaKAMP6qsAMxpCVr_v_vW6Nv9n0DgrXpzl76U0IPpgJP8_dT6Zz0cePhb9wealxm_TRkJ-IehakNyy76LuSPJxvIlVsQc69jy9hK5PmN8Y4rx1RUBKAFx70IgvUs_skSlxZ6qPgy2gm4Tv8IbwDhd-73bdgifErUSPaOxLx86c20L4Hgusm6=w640-h509" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div></div><div class="separator" style="clear: both; text-align: center;"><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
}
</code></pre></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEh6a0DIWvwL1xYr1QJQRJNBDRn-3_rLtrGiyoXwVZAIw8knqp7jSdkMSKe7UW0eaQEgESEVmiX-QOq5kHjfM6cjv1c9DV93EFlLvF_kqaAskbClZVNJWwIPyyikfeG5MWfVXOFj6MDK6A4ZdojA-BccFNPISZV5D4q4E3MXr9PgawAPzHcBTHoAEB-9" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="390" data-original-width="545" height="458" src="https://blogger.googleusercontent.com/img/a/AVvXsEh6a0DIWvwL1xYr1QJQRJNBDRn-3_rLtrGiyoXwVZAIw8knqp7jSdkMSKe7UW0eaQEgESEVmiX-QOq5kHjfM6cjv1c9DV93EFlLvF_kqaAskbClZVNJWwIPyyikfeG5MWfVXOFj6MDK6A4ZdojA-BccFNPISZV5D4q4E3MXr9PgawAPzHcBTHoAEB-9=w640-h458" width="640" /></a></div><br /><br /></div><div class="separator" style="clear: both; text-align: center;"><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> {
"type": "object",
"properties": {
"entityname": {
"type": "string"
}
}
}
</code></pre></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgdSjxtOXo6JLK430W1H4TZ4pXdGj6evVCRROIpGysiUxD8NZ9Q15XSchPqfD65nCc-LAcWR4nb__56KxtKQmewZPFqySWSxw3bVHoujhgxhUZs-hQf4p4NqosdhC7xtx8Jv6jBof2sCXgKnmpxcBpYI3Fi3VaahHITu9qCdMaBexTKlgF3q73EanDT" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="185" data-original-width="597" height="198" src="https://blogger.googleusercontent.com/img/a/AVvXsEgdSjxtOXo6JLK430W1H4TZ4pXdGj6evVCRROIpGysiUxD8NZ9Q15XSchPqfD65nCc-LAcWR4nb__56KxtKQmewZPFqySWSxw3bVHoujhgxhUZs-hQf4p4NqosdhC7xtx8Jv6jBof2sCXgKnmpxcBpYI3Fi3VaahHITu9qCdMaBexTKlgF3q73EanDT=w640-h198" width="640" /></a></div><br />Save the flow and copy the URL</span></span></div><div><span color="rgba(0, 0, 0, 0.901960784313726)"><span style="font-size: 14px;"><br /></span></span></div><div><span style="font-size: 14px;"><div class="separator" style="clear: both; color: rgba(0, 0, 0, 0.9); text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEip2zGAr953aELQI5IbPNB6nchoymq9K-iE6ShQEDze6ziq3-LxplraLNl2Z2u6USGz-b7-B69kRajUZY-71xbe7hyzBZPpUP9W-Qhg52yqmGXmUqOvPtaT3m141aFw3e6sjLRLzFsxW4qZUFAPiKk88shOsNjIvH2j1Fa3aMwy1-BEpuA0rVfy756b" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="418" data-original-width="543" height="492" src="https://blogger.googleusercontent.com/img/a/AVvXsEip2zGAr953aELQI5IbPNB6nchoymq9K-iE6ShQEDze6ziq3-LxplraLNl2Z2u6USGz-b7-B69kRajUZY-71xbe7hyzBZPpUP9W-Qhg52yqmGXmUqOvPtaT3m141aFw3e6sjLRLzFsxW4qZUFAPiKk88shOsNjIvH2j1Fa3aMwy1-BEpuA0rVfy756b=w640-h492" width="640" /></a></div><div class="separator" style="clear: both; color: rgba(0, 0, 0, 0.9); text-align: center;"><br /></div><div class="separator" style="clear: both; color: rgba(0, 0, 0, 0.9); text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiKrR5Em9OwcesXC2rr5J1fCHhn345jTEHzXMuts63SwsD3liTluMilnjevL5f4bXsja_aOyRLImI1COF9KS_nLul1Z18SfzCEq59t7IW8fCZsdc4rXRN3YFhxktlYqI2EDH60TENfkQfpbh9d9Pz4hxlgsEPJthVDPFRIfTGv5jRJhL--HFlnAzxyl" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="674" data-original-width="655" height="400" src="https://blogger.googleusercontent.com/img/a/AVvXsEiKrR5Em9OwcesXC2rr5J1fCHhn345jTEHzXMuts63SwsD3liTluMilnjevL5f4bXsja_aOyRLImI1COF9KS_nLul1Z18SfzCEq59t7IW8fCZsdc4rXRN3YFhxktlYqI2EDH60TENfkQfpbh9d9Pz4hxlgsEPJthVDPFRIfTGv5jRJhL--HFlnAzxyl=w388-h400" width="388" /></a></div><br /><br /></div><br />Open Ribbon Workbench select your solution. Drag and drop the smart button.</span></div><div><span color="rgba(0, 0, 0, 0.901960784313726)"><span style="font-size: 14px;"><br /></span></span></div><div><span style="font-size: 14px;"><div class="separator" style="clear: both; color: rgba(0, 0, 0, 0.9); text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEimqkdTR7pOeqb9tmder9VAYwmj3SRmLWi1D4zPWVSbTofE9MzOO9RUl0pVxXnwwK7UZWaK3kocP24kMW4BtfxjTUfXUcAIbaSIm4zv8TEetFvHoFz-qyeqVhjVBxvyKHSibYBbEy3xiDLsRyn_41jBbrgRIPtsJxmqYD1ax1KcKdi_kzUyPN-0iqBR" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="596" data-original-width="1270" height="300" src="https://blogger.googleusercontent.com/img/a/AVvXsEimqkdTR7pOeqb9tmder9VAYwmj3SRmLWi1D4zPWVSbTofE9MzOO9RUl0pVxXnwwK7UZWaK3kocP24kMW4BtfxjTUfXUcAIbaSIm4zv8TEetFvHoFz-qyeqVhjVBxvyKHSibYBbEy3xiDLsRyn_41jBbrgRIPtsJxmqYD1ax1KcKdi_kzUyPN-0iqBR=w640-h300" width="640" /></a></div><br />You can change button text and image into property.</span></div><div><span style="font-size: 14px;"><br /></span></div><div><span style="font-size: 14px;">Note that for Production and Dev environment flow HTTP host URL can be change.</span></div><div><span style="font-size: 14px;"><br /></span></div><div><span style="font-size: 14px;"><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn-BMdUsnPGK1xH_tuME1nOkOdthA9klMhnk5S_1jsnfFjUBUYTMQviUe34BZ9uS38nte80nn8vxSFNsYwpYhJ7K9XtgaCaJCMX8OYL8peh_vXiFkYAyZPCMryEnzI7rJxf51o5LZnRmlzgrrsIyp1xG-ImvAHPbQuWHi6tKxNtft1uA-jNiWyPVPQ/s835/Capture.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="402" data-original-width="835" height="308" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn-BMdUsnPGK1xH_tuME1nOkOdthA9klMhnk5S_1jsnfFjUBUYTMQviUe34BZ9uS38nte80nn8vxSFNsYwpYhJ7K9XtgaCaJCMX8OYL8peh_vXiFkYAyZPCMryEnzI7rJxf51o5LZnRmlzgrrsIyp1xG-ImvAHPbQuWHi6tKxNtft1uA-jNiWyPVPQ/w640-h308/Capture.PNG" width="640" /></a></div></div><div class="separator" style="clear: both; text-align: center;"><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> Xrm.Navigation.openAlertDialog({text:"Success message."})
</code></pre></div><br /><br /></span></div><div><span style="font-size: 14px;"><br /></span></div><div><span style="font-size: 14px;">Publish the Ribbon Workbench. <br /><br /></span></div>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-61721810810358274492022-05-10T14:25:00.003+01:002022-05-10T14:25:19.201+01:00D365 automate flow common formatting<p> </p><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> // Formate Date
formatDateTime(items('Apply_to_each_Employee_and_Manager')?['std_contract_end'], 'dd.MM.yyyy') </code></pre><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;">
// Get Optionset value
Triggeroutputs()?['body/_yourfieldname_label'] </code></pre><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;">
//Check Null
if(not(equals(items('Apply_to_each_Employee_and_Manager')?['std_probation_until'], null )),formatDateTime(items('Apply_to_each_Employee_and_Manager')?['std_probation_until'], 'dd.MM.yyyy'), null )
</code></pre><p><br /></p><p><br /></p><p><br /></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-16149862566461386672022-05-05T14:44:00.003+01:002022-05-05T14:44:12.683+01:00FetchXML query order by<p> If we want to get the latest created record from an entity we can get it using the FetchXML query order.</p><p><br /></p>
<pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> <fetch top="50">
<entity name="systemuser">
<order attribute="createdon" descending="true" />
</entity>
</fetch>
</code></pre><p><br /></p><p><br /></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-35432225682377413682022-05-05T14:38:00.007+01:002022-05-05T14:39:49.790+01:00Resource not found for the segment<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEggByGlY475daZ32vjZn75lNnxjzavjuIqt6FCnrBop1elpPGb14xU2I3Izi6_4_VkjL1Y2KpLNMoJVkM0Pem72Qn8eO8IPNmZgODkHt6VRyHot5h040L8jen06w7pqi8GpwGUmTa6MQj_skfggT9tKzkXmNfmwMAcocTJbuf-dMTh3frDjT20KzZ_G" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="258" data-original-width="575" height="288" src="https://blogger.googleusercontent.com/img/a/AVvXsEggByGlY475daZ32vjZn75lNnxjzavjuIqt6FCnrBop1elpPGb14xU2I3Izi6_4_VkjL1Y2KpLNMoJVkM0Pem72Qn8eO8IPNmZgODkHt6VRyHot5h040L8jen06w7pqi8GpwGUmTa6MQj_skfggT9tKzkXmNfmwMAcocTJbuf-dMTh3frDjT20KzZ_G=w640-h288" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div>Using D365 Flow if you want to insert or update a record then you may get this error.<p></p><p>This error was raised because in your entity this is a lookup field and you need to set the value with the lookup entity plural name. Like</p><p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhpNC0Qr630KBn5o6kwTULavo_VL0ZTSY1rPMyL9QHiu7s3LRHYvvNXxdLOkJugrw7VoLeLZnWmNbdsQYd94ODbPviVKHKm2Ni3dCM6uqKurNw1K7CqQRTvU4_JdxpxoBUxTCdvK3g_Lu-tCalr9A1u9zdaASi_LP1qaQJo8gYrYkU05RZp6nRIfSKN" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="51" data-original-width="373" height="88" src="https://blogger.googleusercontent.com/img/a/AVvXsEhpNC0Qr630KBn5o6kwTULavo_VL0ZTSY1rPMyL9QHiu7s3LRHYvvNXxdLOkJugrw7VoLeLZnWmNbdsQYd94ODbPviVKHKm2Ni3dCM6uqKurNw1K7CqQRTvU4_JdxpxoBUxTCdvK3g_Lu-tCalr9A1u9zdaASi_LP1qaQJo8gYrYkU05RZp6nRIfSKN=w640-h88" width="640" /></a></div><br /><br /><p></p><p><br /></p><p><br /></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-54818412115560589772022-03-29T11:22:00.007+01:002022-03-29T11:22:57.609+01:00D365 portal KB article details customize comment section.<p><br /></p><p>The comment is a set of Microsoft control. If you want to make it customized like width height or change post comment button content you can use CSS and javascript.</p><p></p><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhxJ0ZrlzS_-h9jdGOhvLflDB0roikPWbwpSlxFzig9AlPeZlUUERsVuhNZPMT-6k8lYW1n_gYoQyXhqWfoBakDCbNQ6v7JmsB8AmlnjNDoQ9ra9oEQawXKkVKd9Fp7o0PHN_uQ6Ys_LX9LXi1m2JefRYzbVled4FVO1jHmhTRe9hk4nm_94bwVcRiZ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="579" data-original-width="1890" height="195" src="https://blogger.googleusercontent.com/img/a/AVvXsEhxJ0ZrlzS_-h9jdGOhvLflDB0roikPWbwpSlxFzig9AlPeZlUUERsVuhNZPMT-6k8lYW1n_gYoQyXhqWfoBakDCbNQ6v7JmsB8AmlnjNDoQ9ra9oEQawXKkVKd9Fp7o0PHN_uQ6Ys_LX9LXi1m2JefRYzbVled4FVO1jHmhTRe9hk4nm_94bwVcRiZ=w640-h195" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br />Goto localized content and in Advance add your javascript or CSS file.<p></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEg7csASTi62hEg88SA7ZyMcVu5NjKpQqDzrGY48CLBCAdEecY8SSH1RuY_KfYCTMXon2mmkSHTgfAQeUbOWdi8ICWxkqlNWljy2zMovnscOGvypP32xxelNa2_RhTZ_cPT4BUeN7FK7AYH7xBUUbkLcOfI6yKDco27yCmnYb5NXp0H_1mBw97O-V3ye" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="746" data-original-width="1035" height="289" src="https://blogger.googleusercontent.com/img/a/AVvXsEg7csASTi62hEg88SA7ZyMcVu5NjKpQqDzrGY48CLBCAdEecY8SSH1RuY_KfYCTMXon2mmkSHTgfAQeUbOWdi8ICWxkqlNWljy2zMovnscOGvypP32xxelNa2_RhTZ_cPT4BUeN7FK7AYH7xBUUbkLcOfI6yKDco27yCmnYb5NXp0H_1mBw97O-V3ye=w400-h289" width="400" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjrIFbz4UsU49M_H0MF5NFIyaKNgaOTWbazZWsHTjhiD-9KNjaZ3V11Yz255UdfM3NLIinC5OK9YlMRr3ElJb2V3uxDnS7W9ln_vutOkpHT_3l2n1183v-48ekPQbQwEHTO6xvRzWyzhg_HePyThuhFBtZQkOyy2aqEPbE4i4rRsJSOQKgRvn7Vay06" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="749" data-original-width="896" height="334" src="https://blogger.googleusercontent.com/img/a/AVvXsEjrIFbz4UsU49M_H0MF5NFIyaKNgaOTWbazZWsHTjhiD-9KNjaZ3V11Yz255UdfM3NLIinC5OK9YlMRr3ElJb2V3uxDnS7W9ln_vutOkpHT_3l2n1183v-48ekPQbQwEHTO6xvRzWyzhg_HePyThuhFBtZQkOyy2aqEPbE4i4rRsJSOQKgRvn7Vay06=w400-h334" width="400" /></a></div><br /><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /><p></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-18249438794683331772022-02-07T21:58:00.001+00:002022-02-07T21:58:04.522+00:00D365 portal payone payment integration<p> Recently i implement PAYONE payment using C#</p><p><a href="https://docs.payone.com/display/public/PLATFORM/PAYONE+Link+-+API">https://docs.payone.com/display/public/PLATFORM/PAYONE+Link+-+API</a></p><p>I also work with other payment gateway like stripe.</p><p>During develop this PAYONE solution for portal i realize myself this is no 1 according to their security.</p><p>PAYONE is a very complex system but i like their sytem. PAYONE works like this steps:</p><p><br /></p><p>1. Create link Request</p><p>2. Notify URL</p><p>3. Transaction status</p><p>4. Payment cancel request.</p><p><br /></p><p>soon i will try to share some code. </p><p><br /></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-76497349576555400682022-01-11T12:54:00.005+00:002022-01-11T12:54:38.973+00:00D365 Add search criteria field into lookup field.<p> If you want to add a search field into the lookup view you will not able to add the add option. </p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-rGXv0tOCNJs/Yd19WYSqupI/AAAAAAAAH78/03ufZv1Mn_M16OQOlL2a8CI-pQ3DGq5HgCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="230" data-original-width="151" height="240" src="https://lh3.googleusercontent.com/-rGXv0tOCNJs/Yd19WYSqupI/AAAAAAAAH78/03ufZv1Mn_M16OQOlL2a8CI-pQ3DGq5HgCNcBGAsYHQ/image.png" width="158" /></a></div><br />In this case, you need to add the field into Quick Find View it will take the impact of another view<p></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-uiMAyhx4FBQ/Yd19t4w1V8I/AAAAAAAAH8E/6-6B88uV_TUenQRm-N8OUTJI7S2ildS1gCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="243" data-original-width="147" height="240" src="https://lh3.googleusercontent.com/-uiMAyhx4FBQ/Yd19t4w1V8I/AAAAAAAAH8E/6-6B88uV_TUenQRm-N8OUTJI7S2ildS1gCNcBGAsYHQ/image.png" width="145" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /><p></p><p>For my case, I was using Product Lookup view into lookup view </p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-OykE6Q3U6Kk/Yd19_jx98SI/AAAAAAAAH8M/gZ-fT_Gc0xA3kjEIAY5hddO2yZBW9PwTQCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="226" data-original-width="614" height="118" src="https://lh3.googleusercontent.com/-OykE6Q3U6Kk/Yd19_jx98SI/AAAAAAAAH8M/gZ-fT_Gc0xA3kjEIAY5hddO2yZBW9PwTQCNcBGAsYHQ/image.png" width="320" /></a></div><br /><br /><p></p><p><br /></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-75842867887985133932021-12-15T14:09:00.003+00:002021-12-15T14:09:20.703+00:00Add additional text into D365 portal label <p> If we want to add additional label value to the D365 portal we can use this approach</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-Zo9EFng9-zI/Ybn2Hx6hk7I/AAAAAAAAHrw/hWIxtyDfL4oDXsNIAvF1U2qOCVI3cY-vACNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="429" data-original-width="777" height="221" src="https://lh3.googleusercontent.com/-Zo9EFng9-zI/Ybn2Hx6hk7I/AAAAAAAAHrw/hWIxtyDfL4oDXsNIAvF1U2qOCVI3cY-vACNcBGAsYHQ/w400-h221/image.png" width="400" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br />
<pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> $(document).ready(function (){
var currentLabel = $("label#std_data_storage_confirmation_label").html();
var labelWithDatenSchutzLink = currentLabel + " <a href='https://www.fedalic.de/' class='fedalic-blue' target='_blank' >Datenschutz</a>";
$("label#std_data_storage_confirmation_label").html(labelWithDatenSchutzLink);
});
</code></pre>65 <p></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-81105455326742438452021-12-14T12:51:00.001+00:002021-12-14T12:51:06.865+00:00Rich Text Field are showing in plain text with html tags in Dynamics 365 Portals<p> In my D365 form, I have some fields that contains HTML tags. like link.</p><p>When I show this form into the portal I can see the tag. which is not expecting. </p><p>i use the following javascript</p><p><br /></p><p>
</p><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> $(document).ready(function(){
// Set the value into tem variable
var std_footer_presave = $('#std_footer').val();
//Remove HTML tag
$("#std_footer").parent().append("<span class='text'>" + $("#std_footer").val()+ "</span>");
$("#std_footer").remove();
// Form validation for next button or save button
window.webFormClientValidate = function () {
// Create hidden field
$('#std_footer').val('');
$('#std_footer').hide();
$('<input>', {
type: 'hidden',
id: 'std_footer',
name: 'std_footer',
value: ''
}).appendTo('form');
// Set value into hidden field
$('#std_footer').val(std_footer_presave);
return true;
};
});
</code></pre><br /><p></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-21262976041374166652021-10-18T10:01:00.001+01:002021-10-18T10:01:06.241+01:00d365 portal How can I redirect to login page if not logged in<p> Go to your form select Authentication Required Yes. In my case, I was using the Advance form.</p><p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-8-5bnC9rhus/YW03vilLAAI/AAAAAAAAHNY/PSmWJAfKeLA4ojyEm51lkfZW-pYQMN40wCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="410" data-original-width="751" height="219" src="https://lh3.googleusercontent.com/-8-5bnC9rhus/YW03vilLAAI/AAAAAAAAHNY/PSmWJAfKeLA4ojyEm51lkfZW-pYQMN40wCLcBGAsYHQ/w400-h219/image.png" width="400" /></a></div><br /><br /><p></p><p><br /></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-80614130773088810952021-10-13T10:36:00.003+01:002021-10-13T10:36:35.120+01:00d365 portal set browser tab title<p> d365 portal browser tab title is the combination of 2 titles. If you want to set the title portal for every page like:</p><p>Student Portal</p><p>Class Portal </p><p>then you need to set the value into Browser Title Suffix</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-IMUfem8yviM/YWamjjlcyWI/AAAAAAAAHLQ/CT886pdbpogSyPGalAvH87w3Z8309qb8ACLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="673" data-original-width="662" height="400" src="https://lh3.googleusercontent.com/-IMUfem8yviM/YWamjjlcyWI/AAAAAAAAHLQ/CT886pdbpogSyPGalAvH87w3Z8309qb8ACLcBGAsYHQ/w393-h400/image.png" width="393" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div>If you do not want to use this text just remove it.<p></p><p>For each page, title Go to your web page-> localized content->select the content page->change the title.</p><p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-MbLOGF8tzy0/YWaojsBYTGI/AAAAAAAAHLY/3pXREeW_l_gAT8HYl_o_rzvBOqORkE7VQCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="746" data-original-width="576" height="400" src="https://lh3.googleusercontent.com/-MbLOGF8tzy0/YWaojsBYTGI/AAAAAAAAHLY/3pXREeW_l_gAT8HYl_o_rzvBOqORkE7VQCLcBGAsYHQ/w308-h400/image.png" width="308" /></a></div><br /><br /><br /><p></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-40139236654379272562021-10-12T13:23:00.003+01:002021-10-12T13:23:38.019+01:00d365 portal form field set as hidden field.<p> If you want to use the form field as a hidden field into the form you can use this.</p>
<pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> $(document).ready(function(){
$('#std_name').val('');
$('#std_name_label').hide();
$('#std_name').hide();
$('<input>', {
type: 'hidden',
id: 'std_name',
name: 'std_name',
value: ''
}).appendTo('form');
});
</code></pre><p>At any event, you can set the value that will behave life form field. </p><p><br /></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-7628160911669249642021-10-12T13:17:00.003+01:002021-10-12T13:17:34.774+01:00d365 portal on change get selected optionset value and text<p> If you want to get the option set value during the change option set then you can use this code block. </p><p><br /></p>
<pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> $(document).ready(function(){
$('#std_type').on('change',(std_typevalue) => {
var requestTypeValue = std_typevalue.target.value; // Get value
var requestTypeText = $( "#std_type option:selected" ).text(); // Get text value
});
});
</code></pre><p><br /></p><p><br /></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-7776319080339910232021-09-02T12:41:00.001+01:002021-09-02T12:41:20.830+01:00D365 portal get date field value into java script<p> If you want to date field value into custom java script. You can use this script.</p><p><br /></p><p><pre style="font-family:arial;font-size:12px;border:1px dashed #CCCCCC;width:99%;height:auto;overflow:auto;background:#f0f0f0;;background-image:URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif);padding:0px;color:#000000;text-align:left;line-height:20px;"><code style="color:#000000;word-wrap:normal;"> $(document).ready(function(){
var CurrentDate = new Date();
var stdregistrationclosedatetime = $("#stdregistrationclosedatetime").datepicker({ dateFormat: 'dd,MM,yyyy' }).val();
var registrationclosedatetime = new Date(stdregistrationclosedatetime)
if(CurrentDate>registrationclosedatetime){
$("#UpdateButton").hide();
}
});
</code></pre><br /></p><p><br /></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-33947144487449702312021-09-01T13:48:00.000+01:002021-09-01T13:48:00.256+01:00D365 portal Custom Javascript is not working into Profile web page<p><span style="background-color: white; font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;">I am trying to add custom JavaScript into Profile web page but it is not working.</span></p><p><span style="background-color: white; font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;">I also try to switch content page but that is also not working, it shows disable.</span></p><p><span style="background-color: white; font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;"></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-nRn1p83gg58/YS91WtgyqYI/AAAAAAAAGX4/sxMSREKiA9QuERte6xz07LSKTvoSM1GEQCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="571" data-original-width="676" height="342" src="https://lh3.googleusercontent.com/-nRn1p83gg58/YS91WtgyqYI/AAAAAAAAGX4/sxMSREKiA9QuERte6xz07LSKTvoSM1GEQCLcBGAsYHQ/w405-h342/image.png" width="405" /></a></div><p><span style="background-color: white; font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;"><br /></span></p>Solution: Click related and web page. select web page and add your script.<p></p><p><span style="background-color: white; font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;"><br /></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-mPcop1FgWKM/YS9183J6NuI/AAAAAAAAGYA/ZwtuT61oWN4xlcXtGjW_3dtjdCGgWUGDgCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="549" data-original-width="749" height="292" src="https://lh3.googleusercontent.com/-mPcop1FgWKM/YS9183J6NuI/AAAAAAAAGYA/ZwtuT61oWN4xlcXtGjW_3dtjdCGgWUGDgCLcBGAsYHQ/w398-h292/image.png" width="398" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-QVhM8qMM_gk/YS92TKbqmII/AAAAAAAAGYI/ffBiBpahn_Y3xpYaPzgXhL7cQfr4z3EVwCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="821" data-original-width="891" height="364" src="https://lh3.googleusercontent.com/-QVhM8qMM_gk/YS92TKbqmII/AAAAAAAAGYI/ffBiBpahn_Y3xpYaPzgXhL7cQfr4z3EVwCLcBGAsYHQ/w394-h364/image.png" width="394" /></a></div><br /><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /><p></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-91078099345281838892021-09-01T10:21:00.001+01:002021-09-01T10:21:08.843+01:00D365 portal Error: Incorrect contents fetched, please reload<p> The error is coming from your custom java script when you click submit button. I my case i was using webFormClientValidate but forgot to return true because it always expect return true if not false.</p>
<pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> window.webFormClientValidate = function () {
// your validation logic
return true;
};
</code></pre><p>For your case please check your custom java script code and find out that you miss anything to return or not.</p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-2090857119565337272021-08-31T10:48:00.000+01:002021-08-31T10:48:11.710+01:00D365 portal currency field formatting<p>D365 portal is not able to format the currency field. It shows like that</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-sAH49NtPzq4/YS35wqDYjsI/AAAAAAAAGXA/rn9ObqV0Mdcy8GOeL8wShztELqe0CNP_ACLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="32" data-original-width="353" height="29" src="https://lh3.googleusercontent.com/-sAH49NtPzq4/YS35wqDYjsI/AAAAAAAAGXA/rn9ObqV0Mdcy8GOeL8wShztELqe0CNP_ACLcBGAsYHQ/image.png" width="320" /></a></div><br />I also try to use mask but that is not solve my problem.<p></p><p><a href="https://oliverrodrigues365.com/2020/04/15/power-apps-portals-adding-field-mask/">https://oliverrodrigues365.com/2020/04/15/power-apps-portals-adding-field-mask/</a></p><p>I use the following java script.</p><p><br /></p><p>
</p><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> $(document).ready(function(){
// Hide default currency icon from this form
$("span."+"input-group-addon").hide();
// Set currency icon
var std_classfee_onload = parseFloat($('#std_classfee').val());
$('#std_classfee').val(new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(parseFloat(std_classfee_onload)));
// Form validation for next button or save button click
window.webFormClientValidate = function () {
// Presave remove currency icon
var std_classfee_presave = parseFloat($('#std_classfee').val());
$('#std_classfee').val(std_classfee_presave);
};
});
</code></pre><br /><p></p><div>For more about <i>Intl.NumberFormat </i>please check.</div><div><br /></div><div><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat</a></div><div><br /></div><div>After using this script now currency field into portal look like</div><div><br /></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-etReVlsGykQ/YS36ww5FxMI/AAAAAAAAGXI/MQ4BczefRA4JkNPDvuDWx6PPnKbB-yiTACLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="51" data-original-width="198" height="82" src="https://lh3.googleusercontent.com/-etReVlsGykQ/YS36ww5FxMI/AAAAAAAAGXI/MQ4BczefRA4JkNPDvuDWx6PPnKbB-yiTACLcBGAsYHQ/image.png" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /></div>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-19711481749401853372021-08-30T08:49:00.001+01:002021-08-30T08:49:04.288+01:00D365 portal date field formatting<p> In portal the CRM form date field is not showing in to the right format. it shows like this.</p><p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-L1zwzxGiMEs/YSyMG01EvMI/AAAAAAAAGWg/rzvkH9tofsMansbeFiDLJyiMD-18VtPfwCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="61" data-original-width="140" height="139" src="https://lh3.googleusercontent.com/-L1zwzxGiMEs/YSyMG01EvMI/AAAAAAAAGWg/rzvkH9tofsMansbeFiDLJyiMD-18VtPfwCLcBGAsYHQ/image.png" width="320" /></a></div><p><br /></p>If you want to format this date field you can use this script.<p></p><p>
</p><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> function setDateTimeFieldValue(fieldId, dateValue) {
//Get the submit field
var $submitField = $("#" + fieldId);
//Get the display field
var $displayField = $submitField.nextAll(".datetimepicker").children("input");
//Get the display date format
var dateFormat = $displayField.attr("data-date-format");
//Set the submit field. Remember this needs to be in UTC and the format must be exact.
$submitField.val(moment.utc(dateValue).format("YYYY-MM-DDTHH:mm:ss.SSSSSSS"));
//Set the display field using the page's date format
$displayField.val(moment(dateValue).format(dateFormat));
}
</code></pre>Call this function with field name and value<p></p><div><br /></div>
<pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> var std__eventstartdatetime = setDateTimeFieldValue('std__eventstartdatetime',data.value[0].std__eventstartdatetime);
</code></pre><div><br /></div><div>Now your date field will be look like this format.</div><div><br /></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-KnME1wXi6Es/YSyNUk9X78I/AAAAAAAAGWo/lwBJunJjqeo848RJv3KsP1rMS0hx3jUXwCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="85" data-original-width="243" height="112" src="https://lh3.googleusercontent.com/-KnME1wXi6Es/YSyNUk9X78I/AAAAAAAAGWo/lwBJunJjqeo848RJv3KsP1rMS0hx3jUXwCLcBGAsYHQ/image.png" width="320" /></a></div><br /><br /></div><div><br /></div>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-70507788867598517462021-08-27T10:59:00.006+01:002021-08-27T10:59:51.049+01:00D365 portal hide Azure AD login button<p> Open theme.css of your portal. add this line at the end of the file.</p>
<pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> .btn-line {
visibility: hidden;
}
</code></pre><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-6riATFq-ABM/YSi2EyQ_gMI/AAAAAAAAGVg/C04Qfd2VJWEHdxcRvrC_2bmkuXqBoMUCQCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="832" data-original-width="1755" height="275" src="https://lh3.googleusercontent.com/-6riATFq-ABM/YSi2EyQ_gMI/AAAAAAAAGVg/C04Qfd2VJWEHdxcRvrC_2bmkuXqBoMUCQCLcBGAsYHQ/w482-h275/image.png" width="482" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div>Go to your portal management and into site settings set Authentication/Registration/ExternalLoginEnabled False.<p></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-ajr9ftIJ5Xo/YSi2-bfb7qI/AAAAAAAAGVo/blK8zBcH_zQyH2F6df_rVs5jPzSmxjILQCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="421" data-original-width="1012" height="174" src="https://lh3.googleusercontent.com/-ajr9ftIJ5Xo/YSi2-bfb7qI/AAAAAAAAGVo/blK8zBcH_zQyH2F6df_rVs5jPzSmxjILQCLcBGAsYHQ/w419-h174/image.png" width="419" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div>Now your portal login window will look like this.<div><br /></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-lEeEeyUzEOs/YSi3gbOrafI/AAAAAAAAGVw/qlQ4yGFdcW4kUdOVhUD1kRoLFTek2j4qgCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="325" data-original-width="686" height="207" src="https://lh3.googleusercontent.com/-lEeEeyUzEOs/YSi3gbOrafI/AAAAAAAAGVw/qlQ4yGFdcW4kUdOVhUD1kRoLFTek2j4qgCLcBGAsYHQ/w436-h207/image.png" width="436" /></a></div><br /><br /><br /><br /><p></p></div>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-8301162194904585962021-08-25T11:15:00.002+01:002021-08-25T11:15:54.053+01:00D365 portal form validation script with other script<p> In your portal form you have form script which is based on your form input. If you also want add form validation in to same script you can use this sample code.</p><p><br />
</p><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> $(document).ready(function(){
// Write your other form script code
// Client validation this will trigger during submit or next button for advance form
window.webFormClientValidate = function () {
// write your client validation logic
var assistenstd = parseFloat($('#proevt_assistenstd_discount').val())
var filePath = $('#AttachFile').val();
if(assistenstd>0){
if(filePath){
return true;
} else {
// Validation error
alert("Please upload document.");
return false;
}
}
};
});
</code></pre><p></p><p><br /></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-54119978361257562992021-08-25T10:28:00.003+01:002021-08-25T10:28:47.071+01:00D365 portal get current record Id<p> If you want to get current record id into Portal you can use this. I use it for my advance form.</p><p></p><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> var currentRecordId = $('#EntityFormView_EntityID').val();
</code></pre><br /><p></p><p><br /></p><p><br /></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-22113088004413483042021-08-20T13:42:00.004+01:002021-08-20T13:42:46.539+01:00D365 portal please wait bar with animation<p> if you want to use please wait with animation in your portal in any event you can use this </p><p><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-yryrwpo4DW0/YR-izWljvSI/AAAAAAAAGPQ/ehLqorAZ8DwN0ldFT0EW95PokkKuMFSoQCLcBGAsYHQ/s481/please%2Bwait.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="109" data-original-width="481" height="73" src="https://1.bp.blogspot.com/-yryrwpo4DW0/YR-izWljvSI/AAAAAAAAGPQ/ehLqorAZ8DwN0ldFT0EW95PokkKuMFSoQCLcBGAsYHQ/s320/please%2Bwait.png" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div>this jquery will work with the default bootstrap of the portal. <div><br /></div><div><br /><p>
<pre style="font-family:arial;font-size:12px;border:1px dashed #CCCCCC;width:99%;height:auto;overflow:auto;background:#f0f0f0;;background-image:URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif);padding:0px;color:#000000;text-align:left;line-height:20px;"><code style="color:#000000;word-wrap:normal;"> // Please wait
function showPleaseWait() {
if (document.querySelector("#pleaseWaitDialog") == null) {
var modalLoading = '<div class="modal" id="pleaseWaitDialog" data-backdrop="static" data-keyboard="false" role="dialog">\
<div class="modal-dialog">\
<div class="modal-content">\
<div class="modal-header">\
<h4 class="modal-title">Bitte warten...</h4>\
</div>\
<div class="modal-body">\
<div class="progress">\
<div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar"\
aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width:100%; height: 40px">\
</div>\
</div>\
</div>\
</div>\
</div>\
</div>';
$(document.body).append(modalLoading);
}
$("#pleaseWaitDialog").modal("show");
}
/**
* Hides "Please wait" overlay. See function showPleaseWait().
*/
function hidePleaseWait() {
$("#pleaseWaitDialog").modal("hide");
}
</code></pre>
<br /></p></div>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-30864501953342300642021-08-20T10:49:00.001+01:002021-08-20T10:49:16.851+01:00D365 portal checkbox enable / disableCheckbox is special input type into javascript. You can try the following for checkbox enable / disable
<pre style="font-family:arial;font-size:12px;border:1px dashed #CCCCCC;width:99%;height:auto;overflow:auto;background:#f0f0f0;;background-image:URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif);padding:0px;color:#000000;text-align:left;line-height:20px;"><code style="color:#000000;word-wrap:normal;"> //Disable
$("#std__assistenzarzt").attr('disabled', 'disabled');
$("#std__assistenzarzt").attr("readonly", "readonly");
//Enable
$("#std__assistenzarzt").removeAttr('disabled');
$("#std__assistenzarzt").removeAttr('readonly');
</code></pre>
Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0tag:blogger.com,1999:blog-5501702115595421505.post-70535609540569503592021-08-20T10:42:00.000+01:002021-08-20T10:42:14.757+01:00D365 portal checkbox check/unchecked event<p> If you want to get the event of D365 portal checkbox check/unchecked event you can try with this code.</p><p><br /></p>
<pre style="font-family:arial;font-size:12px;border:1px dashed #CCCCCC;width:99%;height:auto;overflow:auto;background:#f0f0f0;;background-image:URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif);padding:0px;color:#000000;text-align:left;line-height:20px;"><code style="color:#000000;word-wrap:normal;"> $('#std__assistenzarzt').on('change',(eventdiscountamount) => {
if ($('#std__assistenzarzt').is(":checked"))
{
}
else {
}
});
</code></pre><p><br /></p>Mohammad Atiour Islamhttp://www.blogger.com/profile/15904716209974662566noreply@blogger.com0