Recently I have worked on arequirement where I had to write a service which was going to be used by different clients and had to call same service using HTML web resource in CRM 2015.To achieve this first of all I had to add a ribbon button on entity and call my web resource abc.htm
I was passing record id of entity in url to abc.html and from there I was calling wcf service using AJAX and displaying results and giving user an option to select a row and press submit button. Ob submitting button an other service was being called, again ajax but post method to create records.
Below is a full code of HTML Web Resource with some bootstrap, might help someone else.
List of available Slots
Select a row below to create a WOS Schedule
| Name | ID | RId | EndTime | Start Time | Slot | WOSId | Distance | Business Unit | Telephone |
|---|
A new WOS schedule has been created
No valid time slots found!
Error while creating a new WOS schedule!