9,291
edits
Line 65: | Line 65: | ||
The resco.Houston product is built on the flexible [[resco.ServicePlatform]]. As such, it can benefit from many [[integration]] options inherently available on the platform. For example, you can use [[Power Automate|the Resco Cloud connector for Power Automate]] to connect to many third-party services. One of such integrations is described here: [[Power_Automate#Use_case:_Migrate_models_and_equipment_from_Dynamics_to_resco.Houston|Migrate models and equipment from Dynamics to resco.Houston]]. | The resco.Houston product is built on the flexible [[resco.ServicePlatform]]. As such, it can benefit from many [[integration]] options inherently available on the platform. For example, you can use [[Power Automate|the Resco Cloud connector for Power Automate]] to connect to many third-party services. One of such integrations is described here: [[Power_Automate#Use_case:_Migrate_models_and_equipment_from_Dynamics_to_resco.Houston|Migrate models and equipment from Dynamics to resco.Houston]]. | ||
=== Launch Houston from Resco Mobile CRM === | |||
In some scenarios, you might wish to mix Resco Mobile CRM with resco.Houston. Use the following procedure to add a button to the Customer Asset form of your Resco Mobile CRM with Dynamics backend. | |||
<syntaxhighlight lang="html"> | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta charset="utf-8" /> | |||
<title>JS from Resco rules</title> | |||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |||
<meta | |||
name="viewport" | |||
content="initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" | |||
/> | |||
<script type="text/javascript" src="../JSBridge.js"></script> | |||
</head> | |||
<body> | |||
<script> | |||
function openUrl(entityForm) { | |||
MobileCRM.Platform.openUrl( | |||
`rescohouston://open?jsbridge;fs_asset;${entityForm.entity.properties.msdyn_customerassetid}` | |||
); | |||
} | |||
</script> | |||
</body> | |||
</html> | |||
</syntaxhighlight> | |||
# Take the script above and save it as an HTML file, for example, openLink.html. | |||
# Download Resco JavaScript library from [https://github.com/Resconet/JSBridge/blob/master/src/JSBridge.js Resco GitHub]. | |||
# Edit the app project in Woodford and go to [[Offline HTML]]. | |||
# Upload the files JSBridge.js and openLink.html to your offline HTML folder.<br>The script assumes that the HTML file is in a subfolder related to the JSBridge file. Make sure to update the path if you organize your files differently.<br>[[File:Add openLink script to offline html.png|600px]]<br>Save all changes. | |||
# Edit the Customer Asset form. | |||
# Add an iframe, specify its name and set the '''Url''' to point to a file created earlier. Make sure all the 3 checkboxes are unchecked. Click '''OK'''.<br>[[File:Configure iframe.png|600px]] | |||
# Add a button to the form. Feel free to change anything to match your needs.<br>[[File:Add button to form.png]] | |||
# Click '''Button Click''' and add a rule to execute our script. In the first line, replace "Button1" to match the '''Binding''' of your button.<br>[[File:Edit the button click rule.png|600px]] | |||
# Save everything, publish the app project, and test the new button in your Resco Mobile CRM app. | |||
== See also == | == See also == |