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
private INSite GetSite(string siteCD) | |
{ | |
var siteQ = new SelectFrom<INSite>.Where<Use<INSite.siteCD>.AsString.IsEqual<@P.AsString>>.View(Base); | |
return siteQ.Select(siteCD).FirstOrDefault() | |
} |
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
public class AccessUsers_Extension : PXGraphExtension<AccessUsers> | |
{ | |
... | |
protected virtual IEnumerable associateUser(PXAdapter adapter) | |
{ | |
Users user = (Users)Base.UserList.Current; // Acumatica user | |
if(GoogleActive && user != 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
UsersResource.ListRequest request = _ds.Users.List(); | |
... | |
request.Domain = _domain; | |
Users uGapi = request.Execute(); | |
List<User> users = uGapi.UsersValue.ToList(); | |
... | |
int page = 1; | |
while(!string.IsNullOrEmpty(uGapi.NextPageToken) && page <= THRESHOLD) | |
{ |
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
... | |
MembersResource.ListRequest gRequest = _ds.Members.List(_group); | |
members.AddRange(gRequest.Execute().MembersValue); | |
... |
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
using Google.Apis.Auth.OAuth2; | |
using Google.Apis.Admin.Directory.directory_v1; | |
using Google.Apis.Admin.Directory.directory_v1.Data; | |
using Google.Apis.Services; | |
... | |
string[] extScopes = { | |
DirectoryService.Scope.AdminDirectoryUserReadonly, | |
DirectoryService.Scope.AdminDirectoryGroupMemberReadonly |
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
<px:PXUploadDialog | |
ID="ImportPanel" | |
runat="server" | |
Key="View" | |
Height="120px" | |
Style="position: static" | |
Width="560px" | |
Caption="Service Account Key file (*.json | *.p12)" | |
AutoSaveFile="true" | |
RenderCheckIn="false" |