Installation and Setup > Installing ServiceMax > Standard Webservices > Standard Webservices and Code Snippets in ServiceMax Packages
Standard Webservices and Code Snippets in ServiceMax Packages
When you install ServiceMax managed package, some standard Webservices and JS code snippets are also installed along with it. When you install a standard "seed", these Webservices and Snippets are also ttached to the Standard SFMs.
These Webservices also depend on the values of some pre-defined fields to perform certain functionalities.
The following table lists the standard Webservices:
Webservices
Sl No.
Webservice Name
Purpose
ClassName.methodname
Field/Values Required to Execute
Fields that get Updated After Execution
Standard SFM Attached
Event
1
Activate Contract
Activate the service contract
INTF_WebServicesDef.INTF_ActivateContract
Object Name: SVMXC__Service_Contract__c (Service/Maintenance Contract)
1. ID
2. SVMXC__End_Date__c
Service/Maintenance Contract. Active = True
Activate Contract : SCON_SC_Activate
Button click
2
Activate Preventive Maintenance plan
Activate PM plan
SVMXC__PREV_SFMEventUtils. INTF_ActivatePMPlan_PREV_WS2
Object Name: SVMXC__PM_Plan__c
1. ID
2. SVMXC__Coverage_Type__c
3. SVMXC__Status__c
PMPlan.Status = Active
Activate Preventive Maintenance Plan : PM_ActivatePlan
Button click
3
Cancel Preventive Maintenance plan
Cancel PM Plan
SVMXC__PREV_SFMEventUtils.INTF_CancelPMPlan_WS
Object Name: SVMXC__PM_Plan__c
1. ID
PMPlan.Status = Canceled
Cancel Preventive Maintenance Plan : PM_CancelPlan
Button click
4
Cancel Proforma Invoice
Cancel Proforma Invoice
SVMXC__INTF_WebServicesDef.PINV_CancelInvoice_WS
Object Name: SVMXC__Proforma_Invoice__c
1. ID
Proforma Invoice.Status = Canceled
Cancel Proforma Invoice : Cancel_Proforma_Invoice
Button click
5
Cancel Service Contract
Cancel Service Contract
SVMXC__INTF_WebServicesDef.INTF_CancelContract
Object Name: Service/Maintenance
1. ID 2. SVMXC__Active__c
Service Contract.Active = true
Cancel Service Contract : SCON_SC_Cancelation
Button click
6
Get Price
Calculate Price
SVMXC__INTF_WebServicesDef.INTF_PORD_GetPrice_WS
1. Create Depot repair Work order : PO-TDM001
2. Create Shipment from Case : TDM005
3. Create Shipment from Parts request : TDM008
4. Create Shipment from RMA : TDM006
5. Create Shipment from Work order : TDM007
Button click
7
Get Price
Calculate Price
SVMXC__INTF_WebServicesDef.INTF_PREQ_GetPrice_WS
Manage Part request line : TDM012
Button click
8
Get Price
Calculate Price
SVMXC__INTF_WebServicesDef.INTF_SXFR_GetPrice_WS
Manage Stock Transfer Line : TDM013
Button click
8.1
Create Quote from Work Order (Header)
Calculate Total Line price and Quote Amount
SVMXC__INTF_WebServicesDef.INTF_Quote_Calc_WS
Object Name: SVMXC__Quote__c 1.SVMXC__Discount_Type__c 2.SVMXC__Discount__c
Object Name: SVMXC__Quote_Line__c
1. ID
2. SVMXC__Quantity2__c
3. SVMXC__Discount_Type__c
4. SVMXC__Discount__c
5. SVMXC__Unit_Price2__c
Quote.Total Line price Quote. Quote Amount
1. Create Quote from Work order : TDM009
2. Manage Quote lines :TDM019
1. Before Save / Insert
2. On field change of "Discount Type" 3. On field exit of "Discount"
8.2
Create Quote from Work Order (Child lines)
Calculate Total Line price and Quote Amount
SVMXC__INTF_WebServicesDef.INTF_Quote_Calc_WS
Object Name : Quote Item
1. Qty
2. Unit Price
3. Discount
4. Discount Type
Quote.Total Line price Quote. Quote Amount
1. Create Quote from Work order : TDM009
2. Manage Quote lines :TDM019
On Exit of fields - Qt, Unit Price, Discount and Discount Types for all child tabs
9
Update address fields
Update the "From Location" based on the address type chosen
1.SVMXC__INTF_WebServicesDef.INTF_PORD_SelFromAddressCASE_WS
Object Name: SVMXC__RMA_Shipment_Order__c
1.ID
2.SVMXC__Case__c
3.SVMXC__Source_Location__c 4.SVMXC__Address_Type__c 5.SVMXC__Destination_Location__c
Object : Shipment/RMA
1. From Street
2. From City
3. From State
4. From Country
5. From Zip
Create RMA from Case : TDM004
On exit of "Address Type"
10
Update address fields of "From Location"
Update all the address fields of the From Location based on the value chosen
SVMXC__INTF_WebServicesDef.INTF_PORD_PopulateFromLocation_WS
Same as above
Object : Shipment/RMA
1. From Street
2. From City
3. From State
4. From Country
5. From Zip
1. Create RMA from Case : TDM004
2. Create RMA from Work Order : TDM003
3. Create RMA from Shipment - PO-TDM003
4. Manage RMA lines : TDM010
On field exit of "From Location:"
11
Update address fields of "To Location"
Update all the address fields of the "To Location" based on the value chosen
SVMXC__INTF_WebServicesDef.INTF_PORD_PopulateToLocationRMA_WS
Same as above
Object : Shipment/RMA
1. To Street
2. To City
3. To State
4. To Country
5. To Zip
1. Create RMA from Case : TDM004
2. Create RMA from Work Order : TDM003
3. Create RMA from Shipment - PO-TDM003
4. Manage RMA lines : TDM010
On field exit of "To Location:"
12
Update address fields
Update the "From Location" based on the address type chosen
SVMXC__INTF_WebServicesDef.INTF_PORD_SelFromAddressWO_WS
Same as above
Object : Shipment/RMA
1. From Street
2. From City
3. From State
4. From Country
5. From Zip
Create RMA from Work Order : TDM003
On exit of "Address Type"
13
Create Service Contract Renewal
Creates a new service Contract
SVMXC__INTF_WebServicesDef.INTF_RenewContract
Object Name : SVMXC__Service_Contract__c
1. ID
2. SVMXC__Company__c
3. SVMXC__Renewed_From__c
4. SVMXC__End_Date__c
5. SVMXC__Start_Date__c
6. SVMXC__Renewal_Number__c
7. Name
8. SVMXC__Renewal_Notes__c
Creates a new service Contract
Renew service contract : SCON_CR_SC_Renewal
On button click
14
Update address fields
Update the "From Location" based on the address type chosen
SVMXC__INTF_WebServicesDef.INTF_PORD_SelToAddressCASE_WS
Object Name: SVMXC__RMA_Shipment_Order__c
1. ID
2. SVMXC__Case__c
3. SVMXC__Source_Lo
cation__c
4. SVMXC__Address_Type__c
5. SVMXC__Destination_Location__c
Object : Shipment/RMA
1. From Street
2. From City
3. From State
4. From Country
5. From Zip
1. Create Shipment from Case : TDM005
On change
15
Update address fields of "From Location"
Update all the address fields of the From Location based on the value chosen
SVMXC__INTF_WebServicesDef.INTF_PORD_PopulateFromLocationShipment_WS
Same as above
Object : Shipment/RMA
1. From Street
2. From City
3. From State
4. From Country
5. From Zip
1. Create Shipment from Case : TDM005
2. Create Shipment from Parts Request : TDM008
3. Create Shipment from RMA : TDM006
4. Create Shipment from Work order : TDM007
5. Manage Shipment Line : TDM011
On Exit
16
Update address fields of "To Location"
Update all the address fields of the "To Location" based on the value chosen
SVMXC__INTF_WebServicesDef.INTF_PORD_PopulateToLocation_WS
Same as above
Object : Shipment/RMA
1. To Street
2. To City
3. To State
4. To Country
5. To Zip
1. Create Shipment from Case : TDM005
2. Create Shipment from Parts Request : TDM008
3. Create Shipment from RMA : TDM006
4. Create Shipment from Work order : TDM007
5. Manage Shipment Line : TDM011
On Exit
17
Update address fields
Update the "From Location" based on the address type chosen
SVMXC__INTF_WebServicesDef.INTF_PORD_SelToAddressWO_WS
Same as above
Object : Shipment/RMA
1. From Street
2. From City
3. From State
4. From Country
5. From Zip
1. Create Shipment from Work order : TDM007
On Change
18
Back to Record
Navigate back to source record
SVMXC__SFM_WebServicesDef.SFM_NavigateBackToSourceRecord_WS
NA
NA
View Counter Roll ups : LinkedSFM_View_Counter_Rollups
On button click
19
Update "Is Billable" on Work detail
Sets the value of "Is Billable" on Work detail based on SET015 and SET016 under group settings (Module : Work order, Sub Module : Create Work order lines VF)
SVMXC__INTF_WebServicesDef.INTF_WO_SetIsBillable_WS
NA
Work Detail. Is Billable
Manage Work Order line - Usage : TDM016
On Add Record
20
PM Detail calculation for Service contract
Calculate PM Plan Details for service contract
SVMXC__PREV_SFMEventUtils.INTF_CalculatePMPlanDetails_SCON_WS2
Object Name:SVMXC__PM_Plan__c 1. ID
2. SVMXC__Coverage_Type__c
3. SVMXC__Service_Contract__c Object Name : SVMXC__Service_Contract__c
1.ID
Create or Update PM coverage detail for Service contract and Updating PM plan status
Create Preventive Maintenance Plan from Service Contract :CR_PM_FromSContract
After Save/Insert
21
PM Detail Calculation for Install Product
Calculate PM Plan Details for Install Product
SVMXC__PREV_SFMEventUtils.INTF_CalculatePMPlanDetails_IPRD_WS2
Object Name:SVMXC__PM_Plan__c 1. ID
2. SVMXC__Coverage_Type__c Object Name : SVMXC__Installed_Product__c
1. ID
Create or Update PM coverage detail for Install Product and Updating PM plan status
Create Preventive Maintenance Plan from Installed Product :CR_PM_FromIB
After Save/Insert
22
PM Detail Calculation for Account
Calculate PM Plan Details for Account
SVMXC__PREV_SFMEventUtils.INTF_CalculatePMPlanDetails_ACCT_WS2
Object Name:SVMXC__PM_Plan__c 1. ID
2. SVMXC__Coverage_Type__c Object Name : Account
1. ID
Create or Update PM coverage detail for Account and Updating PM plan status
Create Preventive Maintenance Plan from Account :CR_PM_FromAccount
After Save/
Insert
23
PM Detail Calculation for Location
Calculate PM Plan Details for service Location
SVMXC__PREV_SFMEventUtils.INTF_CalculatePMPlanDetails_LOC_WS2
Object Name:SVMXC__PM_Plan__c 1. ID
2. SVMXC__Coverage_Type__c Object Name : SVMXC__Site__c
1. ID
Create or Update PM coverage detail for Location and Updating PM plan status
Create Preventive Maintenance Plan from Location :CR_PM_FromLocation
After Save/Insert
Was this helpful?