This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function SetDueDate(executionContext) { | |
var obj = Xrm.Page.getAttribute("paymenttermscode"); | |
if (obj != null) { | |
var created_date = Xrm.Page.getAttribute("createdon"); | |
if (created_date != null) { | |
var optionSetValue = obj.getValue(); | |
if (optionSetValue == "100000000") { | |
var new_date = addDays(created_date.getValue() ,60); | |
new_date = addDays(new_date,getMonthDaysLeft(new_date)); | |
Xrm.Page.getAttribute("duedate").setValue(new_date); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step:1 Get entity relationship mapping id - replace source & target entity schema to desired entities you want | |
Add organization url/XRMServices/2011/OrganizationData.svc/EntityMapSet?$select=EntityMapId&$filter=SourceEntityName%20eq%20%27quotedetail%27%20and%20TargetEntityName%20eq%20%27salesorderdetail%27 | |
To get Opportunity Products and Quote Products mapping id replace (source) opportunityproduct & (target) quotedetail this brings up the mapping id | |
Image | |
Step 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install rpm-build cabextract ttmkfdir | |
wget http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec | |
rpmbuild -bb msttcorefonts-2.5-1.spec | |
cp ~/rpmbuild/RPMS/noarch/msttcorefonts-2.5-1.noarch.rpm /tmp | |
yum install /tmp/msttcorefonts-2.5-1.noarch.rpm | |
fc-cache /usr/share/fonts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addDays(date, days) { | |
var result = new Date(date); | |
result.setDate(result.getDate() + parseInt(days)); | |
return result; | |
} | |
function recalculateDateFieldValue() { | |
var date= Xrm.Page.getAttribute("effectivefrom").getValue(); | |
if (date != null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear connection-tracking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# xauth list $DISPLAY | |
node01.tester.com/unix:10 MIT-MAGIC-COOKIE-1 dacbc5765ec54a1d7115a172147866aa | |
# echo $DSIPLAY | |
localhost:10.0 | |
# sudo su - [user] | |
# xauth add node01.tester.com/unix:10 MIT-MAGIC-COOKIE-1 dacbc5765ec54a1d7115a172147866aa | |
# export DISPLAY=localhost:10.0 | |
# xclock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module ActiveDirectory | |
$today = Get-Date | |
$checkDate = $today.Date.AddDays(-350) | |
Try | |
{ | |
$results = Get-ADUser -Filter {Memberof -eq "CN=company,OU=Groups,DC=company,DC=net"} -properties passwordlastset -SearchBase "CN=Users,DC=company,DC=net" | Where-Object {$_.passwordlastset -lt $checkDate} | |
$results_string = $results | Sort-Object -property passwordlastset | Format-Table Name, passwordlastset -HideTableHeaders | Out-String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ADUser -Filter * -properties passwordlastset -SearchBase "CN=Users,DC=local,DC=net" | Sort-Object -property passwordlastset | ft Name, passwordlastset | |
Connect-MsolService | |
Get-MsolUser -All | Select DisplayName,UserPrincipalName,LastPasswordChangeTimeStamp | Sort-Object -property LastPasswordChangeTimeStamp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open a privileged powershell | |
Import-Module ADSync | |
Get-ADSyncScheduler | |
# delta sync | |
Start-ADSyncSyncCycle -PolicyType Delta | |
# or full sync | |
Start-ADSyncSyncCycle -PolicyType Initial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-UnifiedGroupLinks -Identity GROUP -LinkType Subscribers | |
Add-UnifiedGroupLinks -Identity GROUP -LinkType Subscribers -Links user@email.com | |
Remove-UnifiedGroupLinks -Identity GROUP -LinkType Members -Links laura@contoso.com,julia@contoso.com |